salix/db/versions/.archive/10237-greenRoebelini/00-firstScript.sql

7 lines
260 B
MySQL
Raw Permalink Normal View History

-- Place your SQL code here
ALTER TABLE vn.tagAbbreviation ADD tagFk int(11) DEFAULT NULL;
ALTER TABLE vn.tagAbbreviation ADD CONSTRAINT tagAbbreviation_FK FOREIGN KEY (tagFk) REFERENCES vn.tag(id);
UPDATE vn.tagAbbreviation
SET tagFk=56
WHERE value='Rosa';