summaryrefslogtreecommitdiff
path: root/bin/create-history-tables
diff options
context:
space:
mode:
Diffstat (limited to 'bin/create-history-tables')
-rwxr-xr-xbin/create-history-tables3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/create-history-tables b/bin/create-history-tables
index 33eb0e5a3..39248bf3f 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";