projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d01e41e
)
skip history tables that exist already; easier to re-run now
author
ivan
<ivan>
Sun, 22 Jun 2003 09:04:55 +0000
(09:04 +0000)
committer
ivan
<ivan>
Sun, 22 Jun 2003 09:04:55 +0000
(09:04 +0000)
bin/create-history-tables
patch
|
blob
|
history
diff --git
a/bin/create-history-tables
b/bin/create-history-tables
index
33eb0e5
..
8d419d2
100755
(executable)
--- 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 ) {
? @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";
warn "creating history table for $table\n";
my $tableobj = $schema->table($table)
or die "unknown table $table (did you run dbdef-create?)\n";