summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2010-06-05 20:52:30 +0000
committerivan <ivan>2010-06-05 20:52:30 +0000
commit55375c203e5d337e232041e368869a6336f1fd26 (patch)
tree934b3c30cc2871124766acc6c01bd103a4e1e783
parent7c47d95403d8ff9a93848a6ad9de9dcedca84bde (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 8597b9d..c856d95 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 f4ff1c2..a0a5fe6 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;