Skip to content

Commit

Permalink
CRM-20263 Ensure that after using the Add Column method that Multilin…
Browse files Browse the repository at this point in the history
…gual schema is rebuilt properly
  • Loading branch information
seamuslee001 committed May 23, 2017
1 parent 1a86433 commit 150676a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CRM/Upgrade/Incremental/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ public static function addColumn($ctx, $table, $column, $properties) {
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;
}

Expand Down

0 comments on commit 150676a

Please sign in to comment.