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;