salix/db/versions/.archive/10648-blackBirch/00-firstScript.sql

4 lines
218 B
MySQL
Raw Permalink Normal View History

ALTER TABLE vn.workerDocument DROP FOREIGN KEY workerDocument_ibfk_1;
ALTER TABLE vn.workerDocument ADD CONSTRAINT workerDocument_FK FOREIGN KEY (worker) REFERENCES vn.worker(id) ON DELETE RESTRICT ON UPDATE CASCADE;