-- CRM-14056 Fix for Multi-lingual 4.4.4 upgrade fails due to dashboard upgrade
authorNileema <nileema@nileema.(none)>
Fri, 10 Jan 2014 06:00:00 +0000 (11:30 +0530)
committerNileema <nileema@nileema.(none)>
Fri, 10 Jan 2014 06:00:00 +0000 (11:30 +0530)
----------------------------------------
* CRM-14056: Multi-lingual 4.4.4 upgrade fails due to dashboard upgrade
  http://issues.civicrm.org/jira/browse/CRM-14056

CRM/Upgrade/Incremental/php/FourFour.php

index dcfffb667456289f94e14873c1604e1a7152f54d..d180a8f0645d0de5045d545118b0c14313a3c278 100644 (file)
@@ -250,18 +250,10 @@ WHERE a.id IS NULL;
     // task to process sql
     $this->addTask(ts('Upgrade DB to %1: SQL', array(1 => '4.4.4')), 'task_4_4_x_runSql', $rev);
 
-    // Consolidate activity contacts CRM-12274.
-    $this->addTask('Dashboard schema', 'dashboard');
-
-    return TRUE;
-  }
-
-  static function dashboard(CRM_Queue_TaskContext $ctx) {
-    $upgrade = new CRM_Upgrade_Form();
     $query = "
 ALTER TABLE civicrm_dashboard
     ADD name varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Internal name of dashlet.' AFTER domain_id ";
-    CRM_Core_DAO::executeQuery($query);
+    CRM_Core_DAO::executeQuery($query, array(), TRUE, NULL, FALSE, FALSE);
 
     $dashboard = new CRM_Core_DAO_Dashboard();
     $dashboard->find();
@@ -286,8 +278,8 @@ ALTER TABLE civicrm_dashboard
   {$values}
   END;
     ";
+    CRM_Core_DAO::executeQuery($query, array(), TRUE, NULL, FALSE, FALSE);
 
-    CRM_Core_DAO::executeQuery($query);
     return TRUE;
   }