X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FI18n%2FSchema.php;h=0920c4c13260c3b2a9bdbcf167d8f82311bb6225;hb=67ec325f09b6070bddb8273e8bf30e4c79fe17bc;hp=9d72908401ea76c739ae6a16bcad9dbc0ca11aac;hpb=aebbcca99b6fe1be7dff8d1306d62a91fc8d3328;p=civicrm-core.git diff --git a/CRM/Core/I18n/Schema.php b/CRM/Core/I18n/Schema.php index 9d72908401..0920c4c132 100644 --- a/CRM/Core/I18n/Schema.php +++ b/CRM/Core/I18n/Schema.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2018 | + | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2018 + * @copyright CiviCRM LLC (c) 2004-2019 */ class CRM_Core_I18n_Schema { @@ -265,7 +265,7 @@ class CRM_Core_I18n_Schema { // add new columns foreach ($hash as $column => $type) { // CRM-7854: skip existing columns - if (CRM_Core_DAO::checkFieldExists($table, "{$column}_{$locale}", FALSE)) { + if (CRM_Core_BAO_SchemaHandler::checkIfFieldExists($table, "{$column}_{$locale}", FALSE)) { continue; } $queries[] = "ALTER TABLE {$table} ADD {$column}_{$locale} {$type}";