4 lines
250 B
MySQL
4 lines
250 B
MySQL
|
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);
|