Commit b94bd551 authored by eileen's avatar eileen 🎱 Committed by GitHub

Merge pull request #11051 from seamuslee001/CRM-20769-multilingual

CRM-20769 Rebuild multilingual structure based on DAOs after adding c…
parents 976ed82f 38a9c653
......@@ -228,4 +228,19 @@ class CRM_Upgrade_Incremental_Base {
return TRUE;
}
/**
* Rebuild Multilingual Schema.
* @param CRM_Queue_TaskContext $ctx
* @return bool
*/
public static function rebuildMultilingalSchema($ctx) {
$domain = new CRM_Core_DAO_Domain();
$domain->find(TRUE);
if ($domain->locales) {
$locales = explode(CRM_Core_DAO::VALUE_SEPARATOR, $domain->locales);
CRM_Core_I18n_Schema::rebuildMultilingualSchema($locales);
}
return TRUE;
}
}
......@@ -427,6 +427,7 @@ class CRM_Upgrade_Incremental_php_FourSeven extends CRM_Upgrade_Incremental_Base
'civicrm_case', 'created_date', "timestamp NULL DEFAULT NULL COMMENT 'When was the case was created.'");
$this->addTask('CRM-20958 - Add modified_date to civicrm_case', 'addColumn',
'civicrm_case', 'modified_date', "timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'When was the case (or closely related entity) was created or modified or deleted.'");
$this->addTask('Rebuild Multilingual Schema', 'rebuildMultilingalSchema');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment