CRM-18526: Move upgrade code to 4.7.8
authorJKingsnorth <john@johnkingsnorth.co.uk>
Wed, 18 May 2016 12:04:54 +0000 (13:04 +0100)
committerJKingsnorth <john@johnkingsnorth.co.uk>
Wed, 18 May 2016 12:04:54 +0000 (13:04 +0100)
CRM/Upgrade/Incremental/php/FourSeven.php

index d5f230a01f4d056890b81ce92d4ec1f20470491e..6a33eceda470d5564e6c68e5abf31014e43848da 100644 (file)
@@ -192,9 +192,12 @@ class CRM_Upgrade_Incremental_php_FourSeven extends CRM_Upgrade_Incremental_Base
    *
    * @param string $rev
    */
-  public function upgrade_4_7_5($rev) {
+  public function upgrade_4_7_7($rev) {
     $this->addTask(ts('Upgrade DB to %1: SQL', array(1 => $rev)), 'runSql', $rev);
-    $this->addTask('Upgrade mailing foreign key constraints', 'upgradeMailingFKs');
+    // 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');
+    }
   }
 
   /**
@@ -202,12 +205,9 @@ class CRM_Upgrade_Incremental_php_FourSeven extends CRM_Upgrade_Incremental_Base
    *
    * @param string $rev
    */
-  public function upgrade_4_7_7($rev) {
+  public function upgrade_4_7_8($rev) {
     $this->addTask(ts('Upgrade DB to %1: SQL', array(1 => $rev)), 'runSql', $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');
-    }
+    $this->addTask('Upgrade mailing foreign key constraints', 'upgradeMailingFKs');
   }
 
   /*