projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da7d083
)
fix upgrades from old 1.7
author
ivan
<ivan>
Sat, 23 Oct 2010 00:54:10 +0000
(
00:54
+0000)
committer
ivan
<ivan>
Sat, 23 Oct 2010 00:54:10 +0000
(
00:54
+0000)
FS/FS/cust_bill_pkg_detail.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_bill_pkg_detail.pm
b/FS/FS/cust_bill_pkg_detail.pm
index
b8af013
..
7badaa3
100644
(file)
--- 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;