ALTER TABLE lpos DROP FOREIGN KEY lpos_ibfk_1; ALTER TABLE lpos ADD CONSTRAINT lpos_ibfk_1 FOREIGN KEY (supplier_id) REFERENCES suppliers(id);