fix upgrade: clear bad cust_refund.source_paynum before encrypting, RT#81508
authorIvan Kohler <ivan@freeside.biz>
Wed, 24 Oct 2018 00:30:37 +0000 (17:30 -0700)
committerIvan Kohler <ivan@freeside.biz>
Wed, 24 Oct 2018 00:30:37 +0000 (17:30 -0700)
FS/FS/Upgrade.pm

index bbd1ee1..e901a7f 100644 (file)
@@ -332,11 +332,14 @@ sub upgrade_data {
 
   tie my %hash, 'Tie::IxHash', 
 
+    #remap log levels
+    'log' => [],
+
     #fix whitespace - before cust_main
     'cust_location' => [],
 
-    #remap log levels
-    'log' => [],
+    #remove bad source_paynum before cust_main
+    'cust_refund' => [],
 
     #cust_main (tokenizes cards, remove paycvv from history, locations, cust_payby, etc)
     # (handles payinfo encryption/tokenization across all relevant tables)
@@ -401,7 +404,7 @@ sub upgrade_data {
     'cust_pkg' => [],
     #'cust_pkg_reason' => [],
     'cust_pkg_discount' => [],
-    'cust_refund' => [],
+    #'cust_refund' => [],
     'banned_pay' => [],
 
     #default namespace