salix/db/versions/.archive/10436-tealPalmetto/01-addStateToWorkerProducti...

3 lines
207 B
MySQL
Raw Permalink Normal View History

ALTER TABLE bs.workerProductivity ADD stateFk TINYINT UNSIGNED NULL;
ALTER TABLE bs.workerProductivity ADD CONSTRAINT workerProductivity_FK_1 FOREIGN KEY (stateFk) REFERENCES vn.state(id) ON UPDATE CASCADE;