salix/db/versions/.archive/10645-purplePalmetto/03-addFieldToPackingSite.sql

2 lines
201 B
SQL

ALTER TABLE vn.packingSite ADD parkingFk int(11) NULL;
ALTER TABLE vn.packingSite ADD CONSTRAINT packingSite_FK_3 FOREIGN KEY (parkingFk) REFERENCES vn.parking(id) ON DELETE CASCADE ON UPDATE SET NULL;