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;
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 {
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 {
- warn $errmsg.$DBI::errstr;
+ warn $errmsg.$FS::DBI::errstr;
next;
};