X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FUpgrade.pm;h=8f751eef67cac1de02d185d21bba7e7e479bb4f4;hb=4b0392ecbf8f912ce1499cd243b78cb51512aef8;hp=41349a59aeb8646492e52221301b536440ebd06e;hpb=51f97ec141f77064ca020634e7eccd85d9ead753;p=freeside.git diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm index 41349a59a..8f751eef6 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,16 @@ 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' => [], + 'radius_attr' => [], + 'queue_depend' => [], + #update records referencing removed things with their FKs + 'cust_pkg' => [], ; \%hash;