Fix ON DELETE constraint.