From: Tim Otten Date: Mon, 25 Apr 2016 23:13:07 +0000 (-0700) Subject: CRM-18006 - civicrm_install_canary - Ensure ENGINE is InnoDB X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=065ffec9339beb2ceeb3e8d2a0a28af9bb989c97;p=civicrm-core.git CRM-18006 - civicrm_install_canary - Ensure ENGINE is InnoDB This should resolve warnings on systems where MyISAM was default engine. --- diff --git a/CRM/Upgrade/Incremental/php/FourSeven.php b/CRM/Upgrade/Incremental/php/FourSeven.php index 94ed0dfb1b..971c58486b 100644 --- a/CRM/Upgrade/Incremental/php/FourSeven.php +++ b/CRM/Upgrade/Incremental/php/FourSeven.php @@ -183,6 +183,13 @@ class CRM_Upgrade_Incremental_php_FourSeven extends CRM_Upgrade_Incremental_Base $this->addTask('Add Contact Deleted by Merge Activity Type', 'addDeletedByMergeActivityType'); } + public function upgrade_4_7_7($rev) { + // https://issues.civicrm.org/jira/browse/CRM-18006 + if (CRM_Core_DAO::checkTableExists('civicrm_install_canary')) { + CRM_Core_DAO::executeQuery('ALTER TABLE civicrm_install_canary ENGINE=InnoDB'); + } + } + /** * CRM-16354 *