Changes between Initial Version and Version 1 of Ticket #33901, comment 13
- Timestamp:
- Apr 20, 2023, 4:24:25 AM (19 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33901, comment 13
initial v1 18 18 {{{ 19 19 #!sql 20 BEGIN; 21 -- 22 -- Create model ExtendedUser 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); 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; 20 26 CREATE INDEX "myapp_extendeduser_user_id_<chars>_like" ON "myapp_extendeduser" ("user_id" varchar_pattern_ops); 27 COMMIT; 21 28 }}} 22 29