CRM-16193 - Do not log civicrm_mailing_recipients table
authoratif-shaikh <shaikh388@gmail.com>
Thu, 16 Apr 2015 11:16:43 +0000 (16:46 +0530)
committeratif-shaikh <shaikh388@gmail.com>
Thu, 16 Apr 2015 11:16:43 +0000 (16:46 +0530)
https://issues.civicrm.org/jira/browse/CRM-16193

CRM/Logging/Schema.php

index 25c6d4478d51cfc04194a4746a8575b8d792116e..4753fd31e999ffca19b28141608ab33201ea711d 100644 (file)
@@ -81,6 +81,9 @@ AND    TABLE_NAME LIKE 'civicrm_%'
     // do not log civicrm_mailing_event* tables, CRM-12300
     $this->tables = preg_grep('/^civicrm_mailing_event_/', $this->tables, PREG_GREP_INVERT);
 
+    // do not log civicrm_mailing_recipients table, CRM-16193
+    $this->tables = array_diff($this->tables, array('civicrm_mailing_recipients'));
+
     if (defined('CIVICRM_LOGGING_DSN')) {
       $dsn = DB::parseDSN(CIVICRM_LOGGING_DSN);
       $this->useDBPrefix = (CIVICRM_LOGGING_DSN != CIVICRM_DSN);