compareware/Application/Migration/1712851742.sql
2024-04-11 18:25:09 +02:00

4 lines
239 B
SQL

ALTER TABLE items ADD COLUMN id UUID DEFAULT uuid_generate_v4() NOT NULL;
ALTER TABLE tags DROP COLUMN item_id;
ALTER TABLE tags ADD COLUMN item_id UUID NOT NULL;
ALTER TABLE items ADD CONSTRAINT items_wikidata_id_key UNIQUE(wikidata_id);