CRM-14598: Fix sql/4.5.alpha1.mysql.tpl FK declaration for the civicrm_mailing_settings.
authorMathieu Lutfy <mathieu@bidon.ca>
Thu, 1 May 2014 18:46:42 +0000 (14:46 -0400)
committerMathieu Lutfy <mathieu@bidon.ca>
Thu, 1 May 2014 18:46:42 +0000 (14:46 -0400)
CRM/Upgrade/Incremental/sql/4.5.alpha1.mysql.tpl

index 649c33fd90598f6d164f7e6610ce6854dae3cc53..f50c9588ef68608fa8579e937010b029efeeb2fb 100644 (file)
@@ -267,7 +267,7 @@ VALUES
 
 -- CRM-14435
 ALTER TABLE `civicrm_mail_settings`
-  ADD CONSTRAINT `FK_civicrm_mail_settings_domain_id` FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`) ON DELETE SET NULL;
+  ADD CONSTRAINT `FK_civicrm_mail_settings_domain_id` FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`) ON DELETE CASCADE;
 
 -- CRM-14436
 ALTER TABLE `civicrm_mailing`