mac is unique
[freeside.git] / FS / FS / Schema.pm
index d32f72f..e8ab6bf 100644 (file)
@@ -396,7 +396,7 @@ sub tables_hashref {
       'primary_key' => 'eventnum',
       #no... there are retries now #'unique' => [ [ 'eventpart', 'invnum' ] ],
       'unique' => [],
-      'index' => [ ['invnum'], ['status'] ],
+      'index' => [ ['invnum'], ['status'], ['eventpart'] ],
     },
 
     'part_bill_event' => {
@@ -1666,7 +1666,7 @@ sub tables_hashref {
         'vlan_profile', 'varchar', 'NULL', $char_d, '', '', 
       ],
       'primary_key' => 'svcnum',
-      'unique'      => [],
+      'unique'      => [ [ 'mac_addr' ] ],
       'index'       => [],
     },