projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 79913 - added ability to mass transfer customers to new agent
[freeside.git]
/
FS
/
FS
/
Upgrade.pm
diff --git
a/FS/FS/Upgrade.pm
b/FS/FS/Upgrade.pm
index
b47752d
..
c8c0d44
100644
(file)
--- a/
FS/FS/Upgrade.pm
+++ b/
FS/FS/Upgrade.pm
@@
-11,6
+11,7
@@
use FS::Record qw(qsearchs qsearch str2time_sql);
use FS::queue;
use FS::upgrade_journal;
use FS::Setup qw( enable_banned_pay_pad );
use FS::queue;
use FS::upgrade_journal;
use FS::Setup qw( enable_banned_pay_pad );
+use FS::DBI;
use FS::svc_domain;
$FS::svc_domain::whois_hack = 1;
use FS::svc_domain;
$FS::svc_domain::whois_hack = 1;
@@
-205,6
+206,13
@@
If you need to continue using the old Form 477 report, turn on the
FS::upgrade_journal->set_done('deprecate_unmask_ss');
}
FS::upgrade_journal->set_done('deprecate_unmask_ss');
}
+ # Rename agent-disable_counts as config-disable_counts, flag now
+ # affects several configuration pages
+ for my $row ( qsearch( conf => { name => 'agent-disable_counts' } )) {
+ $row->name('config-disable_counts');
+ $row->replace;
+ }
+
}
sub upgrade_overlimit_groups {
}
sub upgrade_overlimit_groups {
@@
-373,7
+381,7
@@
sub upgrade_data {
tie my %hash, 'Tie::IxHash',
#remap log levels
tie my %hash, 'Tie::IxHash',
#remap log levels
-
'log' => [],
+ 'log' => [],
#fix whitespace - before cust_main
'cust_location' => [],
#fix whitespace - before cust_main
'cust_location' => [],
@@
-382,6
+390,9
@@
sub upgrade_data {
# blocks tokenization upgrade if deprecated features still in use
'agent_payment_gateway' => [],
# blocks tokenization upgrade if deprecated features still in use
'agent_payment_gateway' => [],
+ #remove bad source_paynum before cust_main
+ 'cust_refund' => [],
+
#cust_main (tokenizes cards, remove paycvv from history, locations, cust_payby, etc)
# (handles payinfo encryption/tokenization across all relevant tables)
'cust_main' => [],
#cust_main (tokenizes cards, remove paycvv from history, locations, cust_payby, etc)
# (handles payinfo encryption/tokenization across all relevant tables)
'cust_main' => [],
@@
-451,7
+462,7
@@
sub upgrade_data {
'cust_pkg' => [],
#'cust_pkg_reason' => [],
'cust_pkg_discount' => [],
'cust_pkg' => [],
#'cust_pkg_reason' => [],
'cust_pkg_discount' => [],
- 'cust_refund' => [],
+
#
'cust_refund' => [],
'banned_pay' => [],
#paycardtype
'banned_pay' => [],
#paycardtype
@@
-633,11
+644,11
@@
sub upgrade_sqlradius {
my $errmsg = 'Error adding FreesideStatus to '.
$part_export->option('datasrc'). ': ';
my $errmsg = 'Error adding FreesideStatus to '.
$part_export->option('datasrc'). ': ';
- my $dbh = DBI->connect(
+ my $dbh =
FS::
DBI->connect(
( map $part_export->option($_), qw ( datasrc username password ) ),
{ PrintError => 0, PrintWarn => 0 }
) or do {
( map $part_export->option($_), qw ( datasrc username password ) ),
{ PrintError => 0, PrintWarn => 0 }
) or do {
- warn $errmsg.$DBI::errstr;
+ warn $errmsg.$
FS::
DBI::errstr;
next;
};
next;
};