From: Eileen McNaughton Date: Wed, 27 Aug 2014 23:37:49 +0000 (+1200) Subject: CRM-15196 mysql 5.6 is too strict on altering columns which have fks X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=82fdd5289c5ca77fda07f6c88034feebcc76387b;p=civicrm-core.git CRM-15196 mysql 5.6 is too strict on altering columns which have fks --- diff --git a/CRM/Upgrade/Incremental/sql/4.4.alpha1.mysql.tpl b/CRM/Upgrade/Incremental/sql/4.4.alpha1.mysql.tpl index d82c8ae125..c3c3c63f3d 100644 --- a/CRM/Upgrade/Incremental/sql/4.4.alpha1.mysql.tpl +++ b/CRM/Upgrade/Incremental/sql/4.4.alpha1.mysql.tpl @@ -67,9 +67,11 @@ ALTER TABLE `civicrm_custom_group` ADD COLUMN `is_reserved` tinyint(4) DEFAULT '0' COMMENT 'Is this a reserved Custom Group?'; --CRM-12986 fix event_id & contact_id to NOT NULL fields on participant table +SET foreign_key_checks = 0; ALTER TABLE `civicrm_participant` CHANGE COLUMN `event_id` `event_id` INT(10) UNSIGNED NOT NULL, CHANGE COLUMN `contact_id` `contact_id` INT(10) UNSIGNED NOT NULL; +SET foreign_key_checks = 1; -- CRM-12964 civicrm_print_label table creation CREATE TABLE IF NOT EXISTS `civicrm_print_label` (