[freeside-commits] freeside/FS/FS cust_bill_pkg_detail.pm, 1.13, 1.14

Ivan,,, ivan at wavetail.420.am
Mon Aug 16 13:12:47 PDT 2010


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv19690/FS/FS

Modified Files:
	cust_bill_pkg_detail.pm 
Log Message:
fix upgrade with ancient cust_bill_pkg_detail.classnum but new DBIx::DBSchema, RT#9640

Index: cust_bill_pkg_detail.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill_pkg_detail.pm,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -w -d -r1.13 -r1.14
--- cust_bill_pkg_detail.pm	27 Mar 2010 06:21:53 -0000	1.13
+++ cust_bill_pkg_detail.pm	16 Aug 2010 20:12:45 -0000	1.14
@@ -231,11 +231,8 @@
 }
 
 
-# _upgrade_data
-#
-# Used by FS::Upgrade to migrate to a new database.
-
-sub _upgrade_data { # class method
+# Used by FS::Upgrade to migrate to a new database schema
+sub _upgrade_schema { # class method
 
   my ($class, %opts) = @_;
 
@@ -313,11 +310,12 @@
 
   }
 
+}
 
-  if ( defined( dbdef->table($class->table)->column('billpkgnum') ) &&
-       defined( dbdef->table($class->table)->column('invnum') ) &&
-       defined( dbdef->table($class->table)->column('pkgnum') ) 
-  ) {
+# Used by FS::Upgrade to migrate to a new database
+sub _upgrade_data { # class method
+
+  my ($class, %opts) = @_;
 
     warn "$me Checking for unmigrated invoice line item details\n" if $DEBUG;
 
@@ -357,8 +355,6 @@
 
     } # if @cbpd
 
-  } # if billpkgnum, invnum, and pkgnum columns defined
-
   '';
 
 }                         



More information about the freeside-commits mailing list