projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a86433
)
CRM-20263 Ensure that after using the Add Column method that Multilingual schema...
author
Seamus Lee
<seamuslee001@gmail.com>
Tue, 23 May 2017 00:00:56 +0000
(10:00 +1000)
committer
Seamus Lee
<seamuslee001@gmail.com>
Tue, 23 May 2017 00:00:56 +0000
(10:00 +1000)
CRM/Upgrade/Incremental/Base.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Upgrade/Incremental/Base.php
b/CRM/Upgrade/Incremental/Base.php
index cef0d215efa926a51e1586e56ed379d094f9b2c4..1aab7f9511c8c60a103f77a08b4ef9af2a8d9075 100644
(file)
--- a/
CRM/Upgrade/Incremental/Base.php
+++ b/
CRM/Upgrade/Incremental/Base.php
@@
-155,6
+155,12
@@
class CRM_Upgrade_Incremental_Base {
CRM_Core_DAO::executeQuery("ALTER TABLE `$table` ADD COLUMN `$column` $properties",
array(), TRUE, NULL, FALSE, FALSE);
}
+ $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, NULL);
+ }
return TRUE;
}