mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Re-add index to ports_fdb table (#8267)
This commit is contained in:
committed by
Neil Lathwood
parent
10829893ec
commit
e9c42e3b06
@@ -1163,11 +1163,13 @@ ports_adsl:
|
||||
interface_id: { Name: interface_id, Columns: [port_id], Unique: true, Type: BTREE }
|
||||
ports_fdb:
|
||||
Columns:
|
||||
- { Field: ports_fdb_id, Type: 'bigint(20) unsigned', 'Null': false, Extra: auto_increment }
|
||||
- { Field: port_id, Type: 'int(11) unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: mac_address, Type: varchar(32), 'Null': false, Extra: '' }
|
||||
- { Field: vlan_id, Type: 'int(11) unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: device_id, Type: 'int(11) unsigned', 'Null': false, Extra: '' }
|
||||
Indexes:
|
||||
PRIMARY: { Name: PRIMARY, Columns: [ports_fdb_id], Unique: true, Type: BTREE }
|
||||
mac_address: { Name: mac_address, Columns: [mac_address], Unique: false, Type: BTREE }
|
||||
ports_fdb_port_id_index: { Name: ports_fdb_port_id_index, Columns: [port_id], Unique: false, Type: BTREE }
|
||||
ports_fdb_device_id_index: { Name: ports_fdb_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE `ports_fdb` ADD COLUMN `ports_fdb_id` BIGINT(20) UNSIGNED PRIMARY KEY AUTO_INCREMENT FIRST;
|
||||
Reference in New Issue
Block a user