make svc_broadband speed fields optional
authormark <mark>
Tue, 29 Nov 2011 23:53:33 +0000 (23:53 +0000)
committermark <mark>
Tue, 29 Nov 2011 23:53:33 +0000 (23:53 +0000)
FS/FS/Schema.pm
FS/FS/svc_broadband.pm

index a6d6819..8c25203 100644 (file)
@@ -2503,8 +2503,8 @@ sub tables_hashref {
         'svcnum', 'int', '', '', '', '', 
         'description', 'varchar', 'NULL', $char_d, '', '', 
         'blocknum', 'int', 'NULL', '', '', '', 
-        'speed_up', 'int', '', '', '', '', 
-        'speed_down', 'int', '', '', '', '', 
+        'speed_up', 'int', 'NULL', '', '', '', 
+        'speed_down', 'int', 'NULL', '', '', '', 
         'ip_addr', 'varchar', 'NULL', 15, '', '', 
         'mac_addr', 'varchar', 'NULL', 12, '', '', 
         'authkey',  'varchar', 'NULL', 32, '', '', 
index ad7dedc..5469a66 100755 (executable)
@@ -351,8 +351,8 @@ sub check {
     $self->ut_numbern('svcnum')
     || $self->ut_numbern('blocknum')
     || $self->ut_textn('description')
-    || $self->ut_number('speed_up')
-    || $self->ut_number('speed_down')
+    || $self->ut_numbern('speed_up')
+    || $self->ut_numbern('speed_down')
     || $self->ut_ipn('ip_addr')
     || $self->ut_hexn('mac_addr')
     || $self->ut_hexn('auth_key')