add last_poll_attempted column to devices table

This commit is contained in:
Clint Armstrong
2015-07-13 09:22:53 -04:00
parent 55ad58b4e9
commit 01b7648136

View File

@@ -1,3 +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);
ALTER TABLE `devices` ADD `last_poll_attempted` timestamp NULL DEFAULT NULL AFTER `last_polled`;