[freeside-commits] branch FREESIDE_3_BRANCH updated. b44efbfbf120cae70a1495a8857cafb61d448f20
Ivan Kohler
ivan at freeside.biz
Fri Feb 9 18:53:07 PST 2018
The branch, FREESIDE_3_BRANCH has been updated
via b44efbfbf120cae70a1495a8857cafb61d448f20 (commit)
from 9ffc202e968b54e9b2d5bdbade74416a3b36c0ac (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b44efbfbf120cae70a1495a8857cafb61d448f20
Author: Ivan Kohler <ivan at freeside.biz>
Date: Fri Feb 9 18:53:06 2018 -0800
journal cdrbatch -> cdrbatchnum upgrade
diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm
index e23938b6c..7f87462a0 100644
--- a/FS/FS/cdr.pm
+++ b/FS/FS/cdr.pm
@@ -1864,9 +1864,12 @@ sub process_batch_import {
#
# Used by FS::Upgrade to migrate to a new database.
+use FS::upgrade_journal;
sub _upgrade_data {
my ($class, %opts) = @_;
+ return if FS::upgrade_journal->is_done('cdr_cdrbatchnum');
+
warn "$me upgrading $class\n" if $DEBUG;
my $sth = dbh->prepare(
@@ -1894,6 +1897,8 @@ sub _upgrade_data {
$sth->execute($cdrbatchnum{$cdrbatch}, $cdrbatch) or die $sth->errstr;
}
+ FS::upgrade_journal->set_done('cdr_cdrbatchnum');
+
}
=item ip_addr_sql FIELD RANGE
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cdr.pm | 5 +++++
1 file changed, 5 insertions(+)
More information about the freeside-commits
mailing list