X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=bin%2Fcreate-history-tables;h=c610e70cf1a2481aeb9e056eda94eaa95c4eda22;hb=f6fb8fb345371d6d7c147758c63b341e34edeab2;hp=d37d682d84d7de13c9e7a3a05a5629d322ff28a5;hpb=5b7ebe66e2e1fd6ed1889339f2e124e9e28ce999;p=freeside.git diff --git a/bin/create-history-tables b/bin/create-history-tables index d37d682d8..c610e70cf 100755 --- a/bin/create-history-tables +++ b/bin/create-history-tables @@ -18,8 +18,9 @@ my $schema = dbdef(); #false laziness w/fs-setup my @tables = scalar(@ARGV) ? @ARGV - : grep { ! /^h_/ } $schema->tables; + : grep { ! /^(h|pg)_/ } $schema->tables; foreach my $table ( @tables ) { + next if grep { /^h_$table/ } $schema->tables; warn "creating history table for $table\n"; my $tableobj = $schema->table($table) or die "unknown table $table (did you run dbdef-create?)\n";