compareware/Application/Migration/1712851742.sql

5 lines
239 B
MySQL
Raw Normal View History

2024-04-11 18:25:09 +02:00
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);