X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_bill_pkg_detail.pm;h=7badaa3b9a33d1428646a6411df62399272fc827;hp=b8af01303e2c41f247274fb469665cbe456fe1c9;hb=da86d5a8af2f915a340a74f6c97772451a1e23ef;hpb=d9c554c746466a20bbbbc2eb69fc737cfe598316 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;