projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 78356 - Added user documentation
[freeside.git]
/
FS
/
FS
/
Upgrade.pm
diff --git
a/FS/FS/Upgrade.pm
b/FS/FS/Upgrade.pm
index
3a99cd3
..
751e1da
100644
(file)
--- a/
FS/FS/Upgrade.pm
+++ b/
FS/FS/Upgrade.pm
@@
-338,7
+338,10
@@
sub upgrade {
});
foreach my $object ( @objects ) {
my $payinfo = $object->decrypt($object->payinfo);
});
foreach my $object ( @objects ) {
my $payinfo = $object->decrypt($object->payinfo);
- die "error decrypting payinfo" if $payinfo eq $object->payinfo;
+ if ( $payinfo eq $object->payinfo ) {
+ warn "error decrypting payinfo for $table: $payinfo\n";
+ next;
+ }
$object->payinfo($payinfo);
my $error = $object->replace;
die $error if $error;
$object->payinfo($payinfo);
my $error = $object->replace;
die $error if $error;
@@
-503,6
+506,10
@@
sub upgrade_data {
#mark certain taxes as system-maintained,
# and fix whitespace
'cust_main_county' => [],
#mark certain taxes as system-maintained,
# and fix whitespace
'cust_main_county' => [],
+
+ #'compliance solutions' -> 'compliance_solutions'
+ 'tax_rate' => [],
+ 'tax_rate_location' => [],
;
\%hash;
;
\%hash;
@@
-581,6
+588,7
@@
sub upgrade_schema_data {
'cust_event_fee' => [],
'radius_attr' => [],
'queue_depend' => [],
'cust_event_fee' => [],
'radius_attr' => [],
'queue_depend' => [],
+ 'cust_main_invoice' => [],
#update records referencing removed things with their FKs
'cust_pkg' => [],
;
#update records referencing removed things with their FKs
'cust_pkg' => [],
;