[freeside-commits] branch FREESIDE_4_BRANCH updated. 85c3e3aae188b29fa09690ce101de81597b53edd

Ivan Kohler ivan at freeside.biz
Fri Feb 9 18:53:04 PST 2018


The branch, FREESIDE_4_BRANCH has been updated
       via  85c3e3aae188b29fa09690ce101de81597b53edd (commit)
      from  00ca6edb07f337b3e8c8dcab087730f11ce18372 (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 85c3e3aae188b29fa09690ce101de81597b53edd
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Feb 9 18:53:03 2018 -0800

    journal cdrbatch -> cdrbatchnum upgrade

diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm
index 844b7fd5c..f5456327e 100644
--- a/FS/FS/cdr.pm
+++ b/FS/FS/cdr.pm
@@ -1877,9 +1877,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(
@@ -1907,6 +1910,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