summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2003-06-22 09:04:56 +0000
committerivan <ivan>2003-06-22 09:04:56 +0000
commit96f38d395cadf37e14f4016c270befaae3e15a49 (patch)
tree60f3cebe4264dcb92d1a987eb39f980798dda29e
parentbbb43a596d81df8c105117d2467a36388827a83e (diff)
skip history tables that exist already; easier to re-run now
-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 d37d682d8..47d9d6a33 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";