Oh I see. Ok, I dropped the foreign key on the first table and I tried to add it to the 2nd table instead, but an error message came up:
SQL query:
ALTER TABLE claims ADD FOREIGN KEY ( clientid ) REFERENCES tristem.checklist (
clientid
) ON DELETE CASCADE ON UPDATE CASCADE ;
MySQL said: Documentation
#1452 - Cannot add or update a child row: a foreign key constraint fails (tristem.#sql-8a8_1d0, CONSTRAINT #sql-8a8_1d0_ibfk_1 FOREIGN KEY (clientid) REFERENCES checklist (clientid) ON DELETE CASCADE ON UPDATE CASCADE)