From: Dave Greenberg Date: Wed, 15 Apr 2015 00:14:46 +0000 (-0700) Subject: CRM-16289 - Upgrade fix for log_civicrm_case.case_type_id. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=394851c57c261cdebde693f0754b2a16bfb6f8f2;p=civicrm-core.git 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 --- 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);