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;