From: eileen Date: Mon, 7 Mar 2016 23:41:42 +0000 (+1300) Subject: CRM-18178 exclude _bak & _backup tables from trigger creation X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e719c24eeb6f62c71bdeb2a9ae633e62914b4585;p=civicrm-core.git CRM-18178 exclude _bak & _backup tables from trigger creation --- diff --git a/CRM/Logging/Schema.php b/CRM/Logging/Schema.php index 9524967476..98e6ed562e 100644 --- a/CRM/Logging/Schema.php +++ b/CRM/Logging/Schema.php @@ -127,6 +127,9 @@ AND TABLE_NAME LIKE 'civicrm_%' //CRM-14672 $this->tables = preg_grep('/^civicrm_menu/', $this->tables, PREG_GREP_INVERT); $this->tables = preg_grep('/_temp_/', $this->tables, PREG_GREP_INVERT); + // CRM-18178 + $this->tables = preg_grep('/_bak$/', $this->tables, PREG_GREP_INVERT); + $this->tables = preg_grep('/_backup$/', $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);