salix/db/versions/.archive/10267-blueDracena/00-firstScript.sql

4 lines
329 B
MySQL
Raw Normal View History

-- Place your SQL code here
ALTER TABLE vn.worker ADD businessFk int(11) DEFAULT NULL NULL;
ALTER TABLE vn.worker ADD CONSTRAINT worker_business FOREIGN KEY (businessFk) REFERENCES postgresql.business(business_id) ON DELETE RESTRICT ON UPDATE CASCADE;
ALTER TABLE vn.worker ADD CONSTRAINT worker_business UNIQUE KEY (businessFk);