X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=bin%2Fcreate-history-tables;h=8d419d2877b0aef1c08d60dd18c1554d271df73b;hp=33eb0e5a39fc336475a56a88328cef60d5df2a34;hb=eef1e8261ea49fe7c531598cbfca064ad3447a5e;hpb=8965012fa53fd05d851d2f5abed4e056ab758797 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";