[freeside-commits] branch master updated. fcadc3a661a041b9119c287ade346e70f108f335

Ivan ivan at 420.am
Tue Sep 10 01:31:58 PDT 2013


The branch, master has been updated
       via  fcadc3a661a041b9119c287ade346e70f108f335 (commit)
      from  5b5168d7ada7b6ca5375762837dc999cab0e8a9e (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 fcadc3a661a041b9119c287ade346e70f108f335
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Sep 10 01:31:57 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 66752da..95b2cc5 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -4268,26 +4268,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'  => [],
     },
 
     'vend_main' => {

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Schema.pm |   23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)




More information about the freeside-commits mailing list