should really fix bug commiting between each table upgrade, arg, RT#8580
authorivan <ivan>
Sat, 5 Jun 2010 20:52:31 +0000 (20:52 +0000)
committerivan <ivan>
Sat, 5 Jun 2010 20:52:31 +0000 (20:52 +0000)
FS/FS/Upgrade.pm
FS/bin/freeside-upgrade

index 8943992..aea7154 100644 (file)
@@ -60,7 +60,7 @@ sub upgrade {
       $class->_upgrade_data(%opt);
 
       if ( $oldAutoCommit ) {
-        warn "  committing";
+        warn "  committing\n";
         dbh->commit or die dbh->errstr;
       }
       
index f4ff1c2..a0a5fe6 100755 (executable)
@@ -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;