X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=bin%2Fcreate-history-tables;h=c610e70cf1a2481aeb9e056eda94eaa95c4eda22;hb=915f63061a7532aa4ccba27e8240a3ec00a117f5;hp=d37d682d84d7de13c9e7a3a05a5629d322ff28a5;hpb=8a1495d1fa92757484b0734af465e7244c6f233d;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";