Bug 24412: (QA follow-up) Change CASCADE DELETE to SET NULL