anon_123
04/24/2022, 4:27 PMFailed to delete user: update or delete on table "users" violates foreign key constraint "todos_user_id_fkey" on table "todos"
Needle
04/24/2022, 4:27 PM/title
command!
We have solved your problem?
Click the button below to archive it.garyaustin
04/24/2022, 6:23 PMNeedle
04/24/2022, 6:23 PManon_123
04/24/2022, 6:38 PMgaryaustin
04/24/2022, 6:43 PMalter table todos
drop constraint todos_user_id_fkey,
add constraint todos_user_id_fkey
foreignkey (user_id)
references users
on delete set NULL;
If I got the punctuation correct and your table/columns correct.anon_123
04/25/2022, 5:00 AM