should fix bug commiting between each table upgrade, RT#8580
[freeside.git] / FS / FS / Upgrade.pm
index 7cf4051..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,8 +128,14 @@ sub upgrade_data {
     #fixup access rights
     'access_right' => [],
 
-    #change tax_rate column types
-    'tax_rate' => [],
+    #change recur_flat and enable_prorate
+    'part_pkg_option' => [],
+
+    #add weights to pkg_category
+    'pkg_category' => [],
+
+    #cdrbatch fixes
+    'cdr' => [],
 
   ;