Changes between Version 1 and Version 2 of Ticket #33901, comment 13


Ignore:
Timestamp:
Apr 20, 2023, 4:25:54 AM (19 months ago)
Author:
Petter Friberg

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33901, comment 13

    v1 v2  
    2222-- Create model ExtendedUser
    2323--
    24 CREATE TABLE "myapp_extendeduser" ("id" bigint NOT NULL PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, "user_id" varchar(254) COLLATE "ci" NOT NULL UNIQUE);
     24CREATE TABLE "myapp_extendeduser" ("id" bigint NOT NULL PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, "user_id" varchar(30) COLLATE "ci" NOT NULL UNIQUE);
    2525ALTER TABLE "myapp_extendeduser" ADD CONSTRAINT "myapp_extendeduser_user_id_<chars>_fk_myapp_user_username" FOREIGN KEY ("user_id") REFERENCES "myapp_user" ("username") DEFERRABLE INITIALLY DEFERRED;
    2626CREATE INDEX "myapp_extendeduser_user_id_<chars>_like" ON "myapp_extendeduser" ("user_id" varchar_pattern_ops);
Back to Top