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
291 B
SQL
5 lines
291 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_filename";
|
|
ALTER TABLE "filestore" ADD CONSTRAINT "filestore_user_id_context_filename" UNIQUE (user_id, context, filename);
|