summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorivan <ivan>2003-06-22 09:04:55 +0000
committerivan <ivan>2003-06-22 09:04:55 +0000
commiteef1e8261ea49fe7c531598cbfca064ad3447a5e (patch)
treed051bd0ebab745d2093ccb21c659ce66231c6382 /bin
parentd01e41ec4ca900fb0b782c6d97f549a505f3a719 (diff)
skip history tables that exist already; easier to re-run now
Diffstat (limited to 'bin')
-rwxr-xr-xbin/create-history-tables1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/create-history-tables b/bin/create-history-tables
index 33eb0e5a3..8d419d287 100755
--- a/bin/create-history-tables
+++ b/bin/create-history-tables
@@ -20,6 +20,7 @@ my @tables = scalar(@ARGV)
? @ARGV
: grep { ! /^h_/ } $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";