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

index b47752d..8e6a1f1 100644 (file)
@@ -373,7 +373,7 @@ sub upgrade_data {
   tie my %hash, 'Tie::IxHash', 
 
     #remap log levels
   tie my %hash, 'Tie::IxHash', 
 
     #remap log levels
-       'log' => [],
+    'log' => [],
 
     #fix whitespace - before cust_main
     'cust_location' => [],
 
     #fix whitespace - before cust_main
     'cust_location' => [],
@@ -382,6 +382,9 @@ sub upgrade_data {
     # blocks tokenization upgrade if deprecated features still in use
     'agent_payment_gateway' => [],
 
     # blocks tokenization upgrade if deprecated features still in use
     'agent_payment_gateway' => [],
 
+    #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)
     'cust_main' => [],
     #cust_main (tokenizes cards, remove paycvv from history, locations, cust_payby, etc)
     # (handles payinfo encryption/tokenization across all relevant tables)
     'cust_main' => [],
@@ -451,7 +454,7 @@ sub upgrade_data {
     'cust_pkg' => [],
     #'cust_pkg_reason' => [],
     'cust_pkg_discount' => [],
     'cust_pkg' => [],
     #'cust_pkg_reason' => [],
     'cust_pkg_discount' => [],
-    'cust_refund' => [],
+    #'cust_refund' => [],
     'banned_pay' => [],
 
     #paycardtype
     'banned_pay' => [],
 
     #paycardtype