Answers for "Cannot delete or update a parent row: a foreign key constraint fails ("

0

Cannot delete or update a parent row: a foreign key constraint fails (

ALTER TABLE "appointments" DROP FOREIGN KEY "appointments_user_id_foreign";

ALTER TABLE "appointments" ADD CONSTRAINT "appointments_user_id_foreign" FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON DELETE CASCADE;
Posted by: Guest on March-09-2021

Code answers related to "Cannot delete or update a parent row: a foreign key constraint fails ("

Browse Popular Code Answers by Language