From ee97dc39dc37b6c996d63a8e4a05e561d1af034a Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 31 Jul 2018 10:22:13 -0400 Subject: [PATCH] Add Refresh column to Monitors table. Explicitly put it after ZoneCount in the update.sql --- db/zm_create.sql.in | 1 + db/zm_update-1.31.43.sql | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/db/zm_create.sql.in b/db/zm_create.sql.in index a6284bc79..966fa9023 100644 --- a/db/zm_create.sql.in +++ b/db/zm_create.sql.in @@ -517,6 +517,7 @@ CREATE TABLE `Monitors` ( `ArchivedEvents` int(10) default NULL, `ArchivedEventDiskSpace` bigint default NULL, `ZoneCount` TINYINT NOT NULL DEFAULT 0, + `Refresh` int(10) unsigned default NULL, PRIMARY KEY (`Id`) ) ENGINE=@ZM_MYSQL_ENGINE@; diff --git a/db/zm_update-1.31.43.sql b/db/zm_update-1.31.43.sql index d8d6eaefd..05a92288e 100644 --- a/db/zm_update-1.31.43.sql +++ b/db/zm_update-1.31.43.sql @@ -16,7 +16,7 @@ SET @s = (SELECT IF( AND column_name = 'Refresh' ) > 0, "SELECT 'Column Refresh exists in Monitors'", -"ALTER TABLE Monitors ADD `Refresh` int(10) unsigned default NULL" +"ALTER TABLE Monitors ADD `Refresh` int(10) unsigned default NULL AFTER `ZoneCount`" )); PREPARE stmt FROM @s;