You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
283 B
SQL
5 lines
283 B
SQL
ALTER TABLE "filestore" ADD COLUMN "context" varchar(32) NOT NULL;
|
|
UPDATE "filestore" SET "context" = 'enigma';
|
|
ALTER TABLE "filestore" DROP CONSTRAINT "filestore_user_id_key";
|
|
ALTER TABLE "filestore" ADD CONSTRAINT "filestore_user_id_key" UNIQUE ("user_id", "context", "filename");
|