From e719c24eeb6f62c71bdeb2a9ae633e62914b4585 Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 8 Mar 2016 12:41:42 +1300 Subject: [PATCH] CRM-18178 exclude _bak & _backup tables from trigger creation --- CRM/Logging/Schema.php | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.25.1