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);