Skip to content
Snippets Groups Projects
Commit 9359d28c authored by Nileema's avatar Nileema
Browse files

-- CRM-14056 Fix for Multi-lingual 4.4.4 upgrade fails due to dashboard upgrade

----------------------------------------
* CRM-14056: Multi-lingual 4.4.4 upgrade fails due to dashboard upgrade
  http://issues.civicrm.org/jira/browse/CRM-14056
parent 21d51f5c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment