salix/db/versions/.archive/10219-orangeRuscus/01-AddFkToCollectionFk.sql

2 lines
153 B
MySQL
Raw Normal View History

ALTER TABLE vn.packingSite ADD CONSTRAINT packingSite_FK_2 FOREIGN KEY (collectionFk) REFERENCES vn.collection(id) ON DELETE SET NULL ON UPDATE CASCADE;