salix/db/versions/.archive/10116-pinkOak/00-firstScript.sql

4 lines
250 B
MySQL
Raw Normal View History

ALTER TABLE vn.propertyNotes DROP FOREIGN KEY propertyNotes_FK;
ALTER TABLE vn.propertyNotes MODIFY COLUMN propertyFk int(11) NOT NULL;
ALTER TABLE vn.propertyNotes ADD CONSTRAINT propertyNotes_FK FOREIGN KEY (propertyFk) REFERENCES vn.property(id);