salix/db/versions/.archive/10468-goldenGerbera/00-firstScript.sql

2 lines
233 B
SQL

ALTER TABLE vn.expeditionMistake DROP FOREIGN KEY expeditionMistake_FK;
ALTER TABLE vn.expeditionMistake ADD CONSTRAINT expeditionMistake_FK FOREIGN KEY (expeditionFk) REFERENCES vn.expedition(id) ON DELETE CASCADE ON UPDATE CASCADE;