[freeside-commits] branch master updated. 895667aa1cf8e9d136043881284df2c9423d1d1e

Ivan ivan at 420.am
Sat Feb 18 17:17:39 PST 2017


The branch, master has been updated
       via  895667aa1cf8e9d136043881284df2c9423d1d1e (commit)
      from  4fe1fd639d387e1a3d271618b35830142583c714 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 895667aa1cf8e9d136043881284df2c9423d1d1e
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sat Feb 18 17:17:38 2017 -0800

    run schema upgrades for pkg_referral and cust_bill_pkg_discount

diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm
index 27c4b4c..a59dc1f 100644
--- a/FS/FS/Upgrade.pm
+++ b/FS/FS/Upgrade.pm
@@ -553,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)
@@ -562,6 +564,9 @@ 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' => [],
   ;
 
   \%hash;

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Upgrade.pm |    5 +++++
 1 file changed, 5 insertions(+)




More information about the freeside-commits mailing list