Re-add index to ports_fdb table (#8267)

This commit is contained in:
Tony Murray
2018-02-21 03:23:00 -06:00
committed by Neil Lathwood
parent 10829893ec
commit e9c42e3b06
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -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 }
+1
View File
@@ -0,0 +1 @@
ALTER TABLE `ports_fdb` ADD COLUMN `ports_fdb_id` BIGINT(20) UNSIGNED PRIMARY KEY AUTO_INCREMENT FIRST;