summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2010-06-05 20:52:31 +0000
committerivan <ivan>2010-06-05 20:52:31 +0000
commit045317ec26f501428a9f0282beb52f463b8e927c (patch)
treefe336636a7ca3b4c15c3281835d1ddf5fdc589ff
parent666acf3d83d90a8a6f96bea5673fe0e2f751d150 (diff)
should really fix bug commiting between each table upgrade, arg, RT#8580
-rw-r--r--FS/FS/Upgrade.pm2
-rwxr-xr-xFS/bin/freeside-upgrade2
2 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm
index 894399296..aea715434 100644
--- 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 f4ff1c28e..a0a5fe68c 100755
--- 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;