librenms/sql-schema/198.sql
Tony Murray e8dd72e8db feature: Support fdb table on generic devices (#6902)
* feature: support fdb table on generic devices
refactored code to use snmpwalk_group
refactored ajax table code to use joins and reduce extra queries
add indexes for device_id and port_id, drop primary index
Make all columns sortable
Fix a few other small issues

* Add index for vlan_id since that field can be searched by the user

* fix whitespace

* Rename 197.sql to 198.sql

* set row count for table
2017-06-29 21:03:56 +01:00

5 lines
250 B
SQL

ALTER TABLE `ports_fdb` DROP `ports_fdb_id`;
CREATE INDEX `ports_fdb_port_id_index` ON `ports_fdb` (`port_id`);
CREATE INDEX `ports_fdb_device_id_index` ON `ports_fdb` (`device_id`);
CREATE INDEX `ports_fdb_vlan_id_index` ON `ports_fdb` (`vlan_id`);