salix/db/versions/10757-silverChrysanthemum/00-firstScript.sql

4 lines
245 B
SQL

ALTER TABLE vn.ticketTracking MODIFY COLUMN workerFk int(10) unsigned DEFAULT NULL NULL;
ALTER TABLE vn.ticketTracking ADD CONSTRAINT ticketTracking_FK3 FOREIGN KEY (workerFk)
REFERENCES account.`user`(id) ON DELETE RESTRICT ON UPDATE CASCADE;