salix/db/versions/.archive/10320-4130collectionnewPAK/01-collection.sql

4 lines
232 B
SQL

ALTER TABLE vn.collection ADD warehouseFk smallint(6) unsigned DEFAULT 60 NOT NULL;
ALTER TABLE vn.collection ADD CONSTRAINT collection_FK2 FOREIGN KEY (warehouseFk) REFERENCES vn.warehouse(id) ON DELETE CASCADE ON UPDATE CASCADE;