Changes between Version 1 and Version 2 of Ticket #33901, comment 13
- Timestamp:
- Apr 20, 2023, 4:25:54 AM (20 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33901, comment 13
v1 v2 22 22 -- Create model ExtendedUser 23 23 -- 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);24 CREATE TABLE "myapp_extendeduser" ("id" bigint NOT NULL PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, "user_id" varchar(30) COLLATE "ci" NOT NULL UNIQUE); 25 25 ALTER 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; 26 26 CREATE INDEX "myapp_extendeduser_user_id_<chars>_like" ON "myapp_extendeduser" ("user_id" varchar_pattern_ops);