CRM-15270 - exclude more tables from the log table creation method.
authorJamie McClelland <jm@mayfirst.org>
Tue, 9 Sep 2014 19:51:29 +0000 (15:51 -0400)
committerJamie McClelland <jm@mayfirst.org>
Tue, 16 Sep 2014 17:13:27 +0000 (13:13 -0400)
Attempting to create log versions of these tables results in errors.

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

CRM/Logging/Schema.php

index d733c8446781fb29ef9c1973d6c54cc8bcf77ee4..d1dd719cc9fb9a515d456ceb483986b603ef3b3a 100644 (file)
@@ -78,6 +78,8 @@ AND    TABLE_NAME LIKE 'civicrm_%'
     $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);
 
     // do not log civicrm_mailing_event* tables, CRM-12300
     $this->tables = preg_grep('/^civicrm_mailing_event_/', $this->tables, PREG_GREP_INVERT);