mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
update sql schema to add primary key for pollers
This commit is contained in:
3
sql-schema/065.sql
Normal file
3
sql-schema/065.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE `device_perf` DROP INDEX `id` , ADD INDEX `id` ( `id` ), ADD INDEX ( `device_id` );
|
||||
DELETE n1 FROM pollers n1, pollers n2 WHERE n1.last_polled < n2.last_polled and n1.poller_name = n2.poller_name;
|
||||
ALTER TABLE pollers ADD PRIMARY KEY (poller_name);
|
Reference in New Issue
Block a user