CRM-16289 - Upgrade fix for log_civicrm_case.case_type_id.
authorDave Greenberg <dave@civicrm.org>
Wed, 15 Apr 2015 00:14:46 +0000 (17:14 -0700)
committerDave Greenberg <dave@civicrm.org>
Wed, 15 Apr 2015 00:14:46 +0000 (17:14 -0700)
----------------------------------------
* 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

index 6022fe6dba1a1b9e19412f2864da22becb4a8b22..c42136d75f9242516207b81d64763c1055fe9b0b 100644 (file)
@@ -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);