SQL - Table Constraints
You have this foreign key:
What happens if you try to update a parent
FOREIGN KEY (child_id) REFERENCES parent(id) ON UPDATE RESTRICT
What happens if you try to update a parent
id that is referenced by a child row?