CRM-18178 exclude _bak & _backup tables from trigger creation
authoreileen <emcnaughton@wikimedia.org>
Mon, 7 Mar 2016 23:41:42 +0000 (12:41 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 8 Mar 2016 00:15:29 +0000 (13:15 +1300)
CRM/Logging/Schema.php

index 952496747664a14afe3765f981d18788ef66033e..98e6ed562ef762cbb636a40843b6d6ee33ea5365 100644 (file)
@@ -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);