CRM-15270 - cleaning code and future proofing on lobo's suggestion
authorJamie McClelland <jm@mayfirst.org>
Mon, 15 Sep 2014 14:44:46 +0000 (10:44 -0400)
committerJamie McClelland <jm@mayfirst.org>
Tue, 16 Sep 2014 17:13:33 +0000 (13:13 -0400)
See https://github.com/civicrm/civicrm-core/pull/4090/files#r17368220

----------------------------------------
* CRM-15270: Enabling logging result in database error
  https://issues.civicrm.org/jira/browse/CRM-15270

CRM/Logging/Schema.php

index d1dd719cc9fb9a515d456ceb483986b603ef3b3a..b67d3af955ba03b2bdf276171bd3d4ad5b9d997e 100644 (file)
@@ -74,12 +74,9 @@ AND    TABLE_NAME LIKE 'civicrm_%'
     $this->tables = preg_grep('/^civicrm_import_job_/', $this->tables, PREG_GREP_INVERT);
     $this->tables = preg_grep('/_cache$/', $this->tables, PREG_GREP_INVERT);
     $this->tables = preg_grep('/_log/', $this->tables, PREG_GREP_INVERT);
-    $this->tables = preg_grep('/^civicrm_task_action_temp_/', $this->tables, PREG_GREP_INVERT);
-    $this->tables = preg_grep('/^civicrm_export_temp_/', $this->tables, PREG_GREP_INVERT);
     $this->tables = preg_grep('/^civicrm_queue_/', $this->tables, PREG_GREP_INVERT);
     $this->tables = preg_grep('/^civicrm_menu/', $this->tables, PREG_GREP_INVERT); //CRM-14672
-    $this->tables = preg_grep('/^civicrm_report_temp_/', $this->tables, PREG_GREP_INVERT);
-    $this->tables = preg_grep('/^civicrm_temp_/', $this->tables, PREG_GREP_INVERT);
+    $this->tables = preg_grep('/_temp_/', $this->tables, PREG_GREP_INVERT);
 
     // do not log civicrm_mailing_event* tables, CRM-12300
     $this->tables = preg_grep('/^civicrm_mailing_event_/', $this->tables, PREG_GREP_INVERT);