From 55375c203e5d337e232041e368869a6336f1fd26 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 5 Jun 2010 20:52:30 +0000 Subject: [PATCH] should really fix bug commiting between each table upgrade, arg, RT#8580 --- FS/FS/Upgrade.pm | 2 +- FS/bin/freeside-upgrade | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm index 8597b9d6b..c856d95ed 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; -- 2.11.0