CRM-12300
authorDonald A. Lobo <lobo@civicrm.org>
Mon, 8 Apr 2013 21:50:35 +0000 (14:50 -0700)
committerDonald A. Lobo <lobo@civicrm.org>
Mon, 8 Apr 2013 21:50:35 +0000 (14:50 -0700)
----------------------------------------
* CRM-12300: Do no log civicrm_mailing_event_* tables
  http://issues.civicrm.org/jira/browse/CRM-12300

CRM/Logging/Schema.php

index b8ca79fa031b0a1564c88c5d4aef723f165ebe41..d81002f5279375e5a9cfb1bebc86bc084360e0ac 100644 (file)
@@ -71,6 +71,9 @@ 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);
 
+    // do not log civicrm_mailing_event* tables, CRM-12300
+    $this->tables = preg_grep('/^civicrm_mailing_event_/', $this->tables, PREG_GREP_INVERT);
+
     $dsn = defined('CIVICRM_LOGGING_DSN') ? DB::parseDSN(CIVICRM_LOGGING_DSN) : DB::parseDSN(CIVICRM_DSN);
     $this->db = $dsn['database'];