projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbf32a2
)
arg
author
ivan
<ivan>
Thu, 12 Jun 2003 13:49:02 +0000
(13:49 +0000)
committer
ivan
<ivan>
Thu, 12 Jun 2003 13:49:02 +0000
(13:49 +0000)
bin/fix-sequences
patch
|
blob
|
history
diff --git
a/bin/fix-sequences
b/bin/fix-sequences
index
d5349ee
..
70b6df6
100755
(executable)
--- a/
bin/fix-sequences
+++ b/
bin/fix-sequences
@@
-51,7
+51,7
@@
foreach my $table ( @tables ) {
my $sql = "SELECT setval( '$seq',
- ( SELECT max($primary_key) FROM $table ) );"
)
;
+ ( SELECT max($primary_key) FROM $table ) );";
warn $col->default. " $seq\n$sql\n";
$dbh->do( $sql ) or die $dbh->errstr;