Skip to content

Commit

Permalink
Merge pull request #25733 from totten/5.60-upg-ml
Browse files Browse the repository at this point in the history
Fix for 5.59 upgrade on multilingual
  • Loading branch information
totten authored Mar 4, 2023
2 parents 7473e98 + d0f5875 commit c62bbf0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CRM/Upgrade/Incremental/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,10 @@ public static function dropColumn($ctx, $table, $column) {
if ($schema->isEnabled()) {
$schema->fixSchemaDifferencesFor($table);
}
$locales = CRM_Core_I18n::getMultilingual();
if ($locales) {
CRM_Core_I18n_Schema::rebuildMultilingualSchema($locales, NULL, TRUE);
}
return TRUE;
}

Expand Down Expand Up @@ -613,6 +617,9 @@ public static function alterColumn($ctx, $table, $column, $properties, $localiza
if ($schema->isEnabled()) {
$schema->fixSchemaDifferencesFor($table);
}
if ($locales) {
CRM_Core_I18n_Schema::rebuildMultilingualSchema($locales, NULL, TRUE);
}
return TRUE;
}

Expand Down

0 comments on commit c62bbf0

Please sign in to comment.