diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2013-09-10 01:31:58 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2013-09-26 17:29:13 -0700 |
| commit | 5e5be65156dc03c73ac173af38329c187276d820 (patch) | |
| tree | dc0ae82c2083fa1e3ab21eacbef9cca0354f27ae | |
| parent | 6ca44d5ef4eef39d742838cc538b9da2e277c01e (diff) | |
svc_cable service have a single serial / MAC / model, not one-to-many devices like svc_phone and svc_dsl, RT#22009
| -rw-r--r-- | FS/FS/Schema.pm | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index b16d1eabc..3d54f02cf 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -3700,26 +3700,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() }, |
