[freeside-commits] branch FREESIDE_3_BRANCH updated. 283452572ef5c0ae62f6753c8e144cd5863d581e
Mark Wells
mark at 420.am
Fri May 31 17:40:54 PDT 2013
The branch, FREESIDE_3_BRANCH has been updated
via 283452572ef5c0ae62f6753c8e144cd5863d581e (commit)
from 52e1a09b0f426bf572e0af9d97bc1c00dd22f427 (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 283452572ef5c0ae62f6753c8e144cd5863d581e
Author: Mark Wells <mark at freeside.biz>
Date: Fri May 31 17:40:44 2013 -0700
convert mac addresses to uppercase on upgrade
diff --git a/FS/FS/svc_broadband.pm b/FS/FS/svc_broadband.pm
index 002aa55..b5012ca 100755
--- a/FS/FS/svc_broadband.pm
+++ b/FS/FS/svc_broadband.pm
@@ -440,6 +440,11 @@ sub _upgrade_data {
local($FS::svc_Common::noexport_hack) = 1;
+ # fix wrong-case MAC addresses
+ my $dbh = dbh;
+ $dbh->do('UPDATE svc_broadband SET mac_addr = UPPER(mac_addr);')
+ or die $dbh->errstr;
+
# set routernum to addr_block.routernum
foreach my $self (qsearch('svc_broadband', {
blocknum => {op => '!=', value => ''},
-----------------------------------------------------------------------
Summary of changes:
FS/FS/svc_broadband.pm | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
More information about the freeside-commits
mailing list