From 01b7648136cd692cfccfbf798a99cce683a5b9d4 Mon Sep 17 00:00:00 2001 From: Clint Armstrong Date: Mon, 13 Jul 2015 09:22:53 -0400 Subject: [PATCH] add last_poll_attempted column to devices table --- sql-schema/065.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql-schema/065.sql b/sql-schema/065.sql index b201eab9a..ab64beca9 100644 --- a/sql-schema/065.sql +++ b/sql-schema/065.sql @@ -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`;