From 394851c57c261cdebde693f0754b2a16bfb6f8f2 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Tue, 14 Apr 2015 17:14:46 -0700 Subject: [PATCH] CRM-16289 - Upgrade fix for log_civicrm_case.case_type_id. ---------------------------------------- * CRM-16289: Remove special characters from log_civicrm_case.case_type_id data during upgrade https://issues.civicrm.org/jira/browse/CRM-16289 --- CRM/Upgrade/Incremental/php/FourSix.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/CRM/Upgrade/Incremental/php/FourSix.php b/CRM/Upgrade/Incremental/php/FourSix.php index 6022fe6dba..c42136d75f 100644 --- a/CRM/Upgrade/Incremental/php/FourSix.php +++ b/CRM/Upgrade/Incremental/php/FourSix.php @@ -193,15 +193,15 @@ class CRM_Upgrade_Incremental_php_FourSix { } /** - * Remove special characters from case_type_id column in log_civicrm_case. - * - * CRM-16289 - If logging enabled and upgrading from 4.4 or earlier, log_civicrm_case.case_type_id will contain special characters. - * This will cause ALTER TABLE to fail when changing this column to an INT - * - * @param \CRM_Queue_TaskContext $ctx - * - * @return bool - */ + * Remove special characters from case_type_id column in log_civicrm_case. + * + * CRM-16289 - If logging enabled and upgrading from 4.4 or earlier, log_civicrm_case.case_type_id will contain special characters. + * This will cause ALTER TABLE to fail when changing this column to an INT + * + * @param \CRM_Queue_TaskContext $ctx + * + * @return bool + */ public static function fixCaseLog(CRM_Queue_TaskContext $ctx) { $sql = "SELECT count(*) FROM information_schema.columns WHERE table_schema = database() AND table_name = 'log_civicrm_case'"; $res = CRM_Core_DAO::singleValueQuery($sql); -- 2.25.1