From: ivan Date: Sun, 22 Jun 2003 09:04:56 +0000 (+0000) Subject: skip history tables that exist already; easier to re-run now X-Git-Tag: freeside_1_4_1rc4~15 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=96f38d395cadf37e14f4016c270befaae3e15a49;p=freeside.git skip history tables that exist already; easier to re-run now --- 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";