|
-- 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; |