Commit bb03fd52 authored by Mac Newbold's avatar Mac Newbold

Clear out temp entries from state_triggers before generating the output.

parent aeba52a1
......@@ -47,5 +47,12 @@ open(FH,"$mysqldump -t $DBNAME $table_names |") or
#
while (<FH>) {
s/^INSERT/REPLACE/g;
#
# Kinda hackish, but gets the job done...
#
# Don't put any temporary entries from state_triggers out
if (/INTO state_triggers VALUES \(\'([^\']*)\',/i &&
$1 ne '*') { next; }
print;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment