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

2 lines
197 B
SQL

ALTER TABLE items ADD CONSTRAINT items_wikidata_id_key UNIQUE(wikidata_id);
ALTER TABLE tags ADD CONSTRAINT tags_ref_item_id FOREIGN KEY (item_id) REFERENCES items (wikidata_id) ON DELETE CASCADE;