From: ivan Date: Sat, 23 Oct 2010 00:54:10 +0000 (+0000) Subject: fix upgrades from old 1.7 X-Git-Tag: freeside_1_9_5~4 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=f07fdd812bf46888b9ca7c96d4a32debd0c5feed fix upgrades from old 1.7 --- diff --git a/FS/FS/cust_bill_pkg_detail.pm b/FS/FS/cust_bill_pkg_detail.pm index b8af01303..7badaa3b9 100644 --- a/FS/FS/cust_bill_pkg_detail.pm +++ b/FS/FS/cust_bill_pkg_detail.pm @@ -238,7 +238,10 @@ sub _upgrade_schema { # class method warn "$me upgrading $class\n" if $DEBUG; - my $type = dbdef->table($class->table)->column('classnum')->type; + my $classnum = dbdef->table($class->table)->column('classnum') + or return; + + my $type = $classnum->type; unless ( $type =~ /^int/i || $type =~ /int$/i ) { my $dbh = dbh;