Unverified Commit 96335902 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub

Merge pull request #14187 from seamuslee001/dev_core_931

Resolve #931 by not doing translation on the query if field e…
parents 35f9da7b e00be4f5
......@@ -156,12 +156,12 @@ class CRM_Upgrade_Incremental_Base {
$domain = new CRM_Core_DAO_Domain();
$domain->find(TRUE);
$queries = [];
if (!CRM_Core_BAO_SchemaHandler::checkIfFieldExists($table, $column)) {
if (!CRM_Core_BAO_SchemaHandler::checkIfFieldExists($table, $column, FALSE)) {
if ($domain->locales) {
if ($localizable) {
$locales = explode(CRM_Core_DAO::VALUE_SEPARATOR, $domain->locales);
foreach ($locales as $locale) {
if (!CRM_Core_BAO_SchemaHandler::checkIfFieldExists($table, "{$column}_{$locale}")) {
if (!CRM_Core_BAO_SchemaHandler::checkIfFieldExists($table, "{$column}_{$locale}", FALSE)) {
$queries[] = "ALTER TABLE `$table` ADD COLUMN `{$column}_{$locale}` $properties";
}
}
......
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