salix/db/versions/.archive/10309-navyCordyline/00-firstScript.sql

5 lines
252 B
MySQL
Raw Permalink Normal View History

-- Place your SQL code here
USE vn;
ALTER TABLE vn.worker DROP FOREIGN KEY worker_business;
ALTER TABLE vn.worker ADD CONSTRAINT worker_business FOREIGN KEY (businessFk)
REFERENCES postgresql.business(business_id) ON DELETE SET NULL ON UPDATE CASCADE;