From 5efbfaf6cbb9f313cff46c4250141db36933d0c8 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 5 Nov 2020 17:31:35 -0500 Subject: [PATCH] SchemaHandler - Remove unused/deprecated function --- CRM/Core/BAO/SchemaHandler.php | 37 ---------------------------------- 1 file changed, 37 deletions(-) diff --git a/CRM/Core/BAO/SchemaHandler.php b/CRM/Core/BAO/SchemaHandler.php index 154bd55992..cb56200c4b 100644 --- a/CRM/Core/BAO/SchemaHandler.php +++ b/CRM/Core/BAO/SchemaHandler.php @@ -271,43 +271,6 @@ ALTER TABLE {$tableName} return $sql; } - /** - * @deprecated - * - * @param array $params - * @param bool $indexExist - * @param bool $triggerRebuild - * - * @return bool - */ - public static function alterFieldSQL($params, $indexExist = FALSE, $triggerRebuild = TRUE) { - CRM_Core_Error::deprecatedFunctionWarning('function no longer in use / supported'); - // lets suppress the required flag, since that can cause sql issue - $params['required'] = FALSE; - - $sql = self::buildFieldChangeSql($params, $indexExist); - - // CRM-7007: do not i18n-rewrite this query - CRM_Core_DAO::executeQuery($sql, [], TRUE, NULL, FALSE, FALSE); - - $config = CRM_Core_Config::singleton(); - if ($config->logging) { - // CRM-16717 not sure why this was originally limited to add. - // For example custom tables can have field length changes - which need to flow through to logging. - // Are there any modifies we DON'T was to call this function for (& shouldn't it be clever enough to cope?) - if ($params['operation'] == 'add' || $params['operation'] == 'modify') { - $logging = new CRM_Logging_Schema(); - $logging->fixSchemaDifferencesFor($params['table_name'], [trim(strtoupper($params['operation'])) => [$params['name']]]); - } - } - - if ($triggerRebuild) { - Civi::service('sql_triggers')->rebuild($params['table_name'], TRUE); - } - - return TRUE; - } - /** * Delete a CiviCRM-table. * -- 2.25.1