should fix bug commiting between each table upgrade, RT#8580
[freeside.git] / FS / FS / Upgrade.pm
index c39680e..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);
 
@@ -99,7 +99,6 @@ sub upgrade_data {
 
     #reason type and reasons
     'reason_type'     => [],
-    'reason'          => [],
     'cust_pkg_reason' => [],
 
     #need part_pkg before cust_credit...
@@ -129,9 +128,6 @@ sub upgrade_data {
     #fixup access rights
     'access_right' => [],
 
-    #change tax_rate column types
-    'tax_rate' => [],
-
     #change recur_flat and enable_prorate
     'part_pkg_option' => [],