if ( $class->can('_upgrade_data') ) {
warn "Upgrading $table...\n";
+ my $start = time;
+
my $oldAutoCommit = $FS::UID::AutoCommit;
local $FS::UID::AutoCommit = 0;
$FS::UID::AutoCommit = 0;
if ( $oldAutoCommit ) {
dbh->commit or die dbh->errstr;
}
+
+ #warn "\e[1K\rUpgrading $table... done in ". (time-$start). " seconds\n";
+ warn " done in ". (time-$start). " seconds\n";
} else {
warn "WARNING: asked for upgrade of $table,".
tie my %hash, 'Tie::IxHash',
+ #cust_main (remove paycvv from history)
+ 'cust_main' => [],
+
#msgcat
'msgcat' => [],
#fixup access rights
'access_right' => [],
+ #change tax_rate column types
+ 'tax_rate' => [],
+
;
\%hash;