salix/db/versions/.archive/10308-grayAsparagus/00-firstScript.sql

3 lines
204 B
SQL

ALTER TABLE vn.greuge ADD userFK int(10) unsigned DEFAULT NULL NULL;
ALTER TABLE vn.greuge ADD CONSTRAINT greuge_FK FOREIGN KEY (userFK) REFERENCES account.`user`(id) ON DELETE CASCADE ON UPDATE CASCADE;