3 lines
230 B
MySQL
3 lines
230 B
MySQL
|
ALTER TABLE vn.workerJourney DROP FOREIGN KEY workerJourney_businessFk;
|
||
|
ALTER TABLE vn.workerJourney ADD CONSTRAINT workerJourney_businessFk FOREIGN KEY (businessFk) REFERENCES vn.business(id) ON DELETE CASCADE ON UPDATE CASCADE;
|