[freeside-commits] branch FREESIDE_3_BRANCH updated. 472a125d9ab758cc94294ed51a9b16c941d658d2
Ivan
ivan at 420.am
Tue Sep 10 01:31:59 PDT 2013
The branch, FREESIDE_3_BRANCH has been updated
via 472a125d9ab758cc94294ed51a9b16c941d658d2 (commit)
from 368e59b1cf6e7b9d80d0175458c0aa00c2aa74b6 (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 472a125d9ab758cc94294ed51a9b16c941d658d2
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Sep 10 01:31:58 2013 -0700
svc_cable service have a single serial / MAC / model, not one-to-many devices like svc_phone and svc_dsl, RT#22009
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index 2856a14..442994a 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -4159,26 +4159,25 @@ sub tables_hashref {
'svc_cable' => {
'columns' => [
- 'svcnum', 'int', '', '', '', '',
- #nothing so far... there should be _something_ uniquely identifying
- # each subscriber besides the device info...?
+ 'svcnum', 'int', '', '', '', '',
+ 'modelnum', 'int', 'NULL', '', '', '',
+ 'serialnum', 'varchar', 'NULL', $char_d, '', '',
+ 'mac_addr', 'varchar', 'NULL', 12, '', '',
],
'primary_key' => 'svcnum',
'unique' => [],
'index' => [],
},
- 'cable_device' => {
+ 'cable_model' => {
'columns' => [
- 'devicenum', 'serial', '', '', '', '',
- 'devicepart', 'int', '', '', '', '',
- 'svcnum', 'int', '', '', '', '',
- 'mac_addr', 'varchar', 'NULL', 12, '', '',
- 'serial', 'varchar', 'NULL', $char_d, '', '',
+ 'modelnum', 'serial', '', '', '', '',
+ 'model_name', 'varchar', '', $char_d, '', '',
+ 'disabled', 'char', 'NULL', 1, '', '',
],
- 'primary_key' => 'devicenum',
- 'unique' => [ [ 'mac_addr' ], ],
- 'index' => [ [ 'devicepart' ], [ 'svcnum' ], ],
+ 'primary_key' => 'modelnum',
+ 'unique' => [ [ 'model_name' ], ],
+ 'index' => [],
},
%{ tables_hashref_torrus() },
-----------------------------------------------------------------------
Summary of changes:
FS/FS/Schema.pm | 23 +++++++++++------------
1 files changed, 11 insertions(+), 12 deletions(-)
More information about the freeside-commits
mailing list