diff options
Diffstat (limited to 'FS/FS/cust_bill_pkg_detail.pm')
-rw-r--r-- | FS/FS/cust_bill_pkg_detail.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/FS/FS/cust_bill_pkg_detail.pm b/FS/FS/cust_bill_pkg_detail.pm index 7badaa3..b8af013 100644 --- a/FS/FS/cust_bill_pkg_detail.pm +++ b/FS/FS/cust_bill_pkg_detail.pm @@ -238,10 +238,7 @@ sub _upgrade_schema { # class method warn "$me upgrading $class\n" if $DEBUG; - my $classnum = dbdef->table($class->table)->column('classnum') - or return; - - my $type = $classnum->type; + my $type = dbdef->table($class->table)->column('classnum')->type; unless ( $type =~ /^int/i || $type =~ /int$/i ) { my $dbh = dbh; |