salix/db/versions/.archive/10524-limeCordyline/01-rateEditorFk.sql

3 lines
169 B
MySQL
Raw Normal View History

ALTER TABLE `vn`.`rate`
ADD IF NOT EXISTS editorFk INT UNSIGNED NULL,
ADD CONSTRAINT rate_fk_editor FOREIGN KEY IF NOT EXISTS (editorFk) REFERENCES account.`user`(id);