This commit was manufactured by cvs2svn to create tag 'freeside_2_1_1'.
[freeside.git] / FS / FS / cust_bill_pkg_detail.pm
index 7badaa3..b8af013 100644 (file)
@@ -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;