X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FUpgrade.pm;h=8a3e83c84d5c16d7d1cc70b738fa9bf4b3484b58;hb=065e15ad1ae8da86fca4d0b64af03ee084e7cf03;hp=41349a59aeb8646492e52221301b536440ebd06e;hpb=ecd038f7ae5c1ffc929f3c928ecd161eeb45d9be;p=freeside.git diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm index 41349a59a..8a3e83c84 100644 --- a/FS/FS/Upgrade.pm +++ b/FS/FS/Upgrade.pm @@ -367,6 +367,7 @@ sub upgrade_data { 'agent_payment_gateway' => [], #cust_main (tokenizes cards, remove paycvv from history, locations, cust_payby, etc) + # (handles payinfo encryption/tokenization across all relevant tables) 'cust_main' => [], #contact -> cust_contact / prospect_contact @@ -552,6 +553,8 @@ sub upgrade_schema { sub upgrade_schema_data { my %opt = @_; + #auto-find tables/classes with an _update_schema method? + tie my %hash, 'Tie::IxHash', #fix classnum character(1) @@ -561,6 +564,14 @@ sub upgrade_schema_data { #remove possible dangling records 'password_history' => [], 'cust_pay_pending' => [], + #remove records referencing removed things with their FKs + 'pkg_referral' => [], + 'cust_bill_pkg_discount' => [], + 'cust_msg' => [], + 'cust_bill_pay_batch' => [], + 'cust_event_fee' => [], + #update records referencing removed things with their FKs + 'cust_pkg' => [], ; \%hash;