projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
666acf3
)
should really fix bug commiting between each table upgrade, arg, RT#8580
author
ivan
<ivan>
Sat, 5 Jun 2010 20:52:31 +0000
(20:52 +0000)
committer
ivan
<ivan>
Sat, 5 Jun 2010 20:52:31 +0000
(20:52 +0000)
FS/FS/Upgrade.pm
patch
|
blob
|
history
FS/bin/freeside-upgrade
patch
|
blob
|
history
diff --git
a/FS/FS/Upgrade.pm
b/FS/FS/Upgrade.pm
index
8943992
..
aea7154
100644
(file)
--- a/
FS/FS/Upgrade.pm
+++ b/
FS/FS/Upgrade.pm
@@
-60,7
+60,7
@@
sub upgrade {
$class->_upgrade_data(%opt);
if ( $oldAutoCommit ) {
- warn " committing";
+ warn " committing
\n
";
dbh->commit or die dbh->errstr;
}
diff --git
a/FS/bin/freeside-upgrade
b/FS/bin/freeside-upgrade
index
f4ff1c2
..
a0a5fe6
100755
(executable)
--- a/
FS/bin/freeside-upgrade
+++ b/
FS/bin/freeside-upgrade
@@
-163,6
+163,8
@@
unless ( $DRY_RUN || $opt_s ) {
$dbh->commit or die $dbh->errstr;
$dbh->disconnect or die $dbh->errstr;
+$FS::UID::AutoCommit = 1;
+
$dbh = adminsuidsetup($user);
warn "Re-initialization with updated schema completed in ". (time-$start). " seconds\n"; # if $DEBUG;