5 lines
252 B
MySQL
5 lines
252 B
MySQL
|
-- 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;
|