From f181102012e8ded7c7d84689c02fc9445176a432 Mon Sep 17 00:00:00 2001 From: kurund Date: Fri, 30 Aug 2013 11:51:56 +0530 Subject: [PATCH] CRM-13066, minor cleanup ---------------------------------------- * CRM-13066: 'Clean up Caches' deletes in progress batches http://issues.civicrm.org/jira/browse/CRM-13066 --- CRM/Upgrade/Incremental/php/FourFour.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Upgrade/Incremental/php/FourFour.php b/CRM/Upgrade/Incremental/php/FourFour.php index cbf45f67d8..30f53ff90b 100644 --- a/CRM/Upgrade/Incremental/php/FourFour.php +++ b/CRM/Upgrade/Incremental/php/FourFour.php @@ -81,7 +81,7 @@ class CRM_Upgrade_Incremental_php_FourFour { $this->addTask(ts('Upgrade DB to 4.4.beta1: SQL'), 'task_4_4_x_runSql', $rev); // check if batch entry data exists in civicrm_cache table - $query = 'select path, data from civicrm_cache where group_name = "batch entry"'; + $query = 'SELECT path, data FROM civicrm_cache WHERE group_name = "batch entry"'; $dao = CRM_Core_DAO::executeQuery($query); while ($dao->fetch()) { // get batch id $batchId[2] @@ -93,7 +93,7 @@ class CRM_Upgrade_Incremental_php_FourFour { } // delete entries from civicrm_cache table - $query = 'DELETE from civicrm_cache where group_name = "batch entry"'; + $query = 'DELETE FROM civicrm_cache WHERE group_name = "batch entry"'; CRM_Core_DAO::executeQuery($query); } -- 2.25.1