should fix bug commiting between each table upgrade, RT#8580
[freeside.git] / FS / FS / Upgrade.pm
index ff577f2..d3f624b 100644 (file)
@@ -55,7 +55,7 @@ sub upgrade {
 
       my $oldAutoCommit = $FS::UID::AutoCommit;
       local $FS::UID::AutoCommit = 0;
-      $FS::UID::AutoCommit = 0;
+      local $FS::UID::AutoCommit = 0;
 
       $class->_upgrade_data(%opt);