From c7fb52256383e6399823eda2ce1d619fb0844b9e Mon Sep 17 00:00:00 2001 From: Emmanuel Papin Date: Sat, 29 Nov 2014 22:33:12 +0100 Subject: [PATCH] Add a sql file to update database from 1.28.0 --- db/zm_update-1.28.0wps1.sql | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 db/zm_update-1.28.0wps1.sql diff --git a/db/zm_update-1.28.0wps1.sql b/db/zm_update-1.28.0wps1.sql new file mode 100644 index 000000000..5f7776451 --- /dev/null +++ b/db/zm_update-1.28.0wps1.sql @@ -0,0 +1,27 @@ +-- +-- This updates a 1.28.0 database to 1.28.0wps1 +-- + +-- +-- Table structure for table `PluginsConfig` +-- + +CREATE TABLE `PluginsConfig` ( + `Id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `Name` varchar(32) NOT NULL DEFAULT '', + `Value` text NOT NULL, + `Type` tinytext NOT NULL, + `Choices` text default NULL, + `Min` int(10) unsigned NULL default NULL, + `Max` int(10) unsigned NULL default NULL, + `MonitorId` int(10) unsigned NOT NULL, + `ZoneId` int(10) unsigned NOT NULL, + `pluginName` tinytext NOT NULL, + PRIMARY KEY (`Id`), + KEY `ZoneId` (`ZoneId`), + KEY `MonitorId` (`MonitorId`), + KEY `Name` (`Name`), + KEY `pluginName` (`pluginName`) +) ENGINE=MyISAM; + +ALTER TABLE `Monitors` ADD `DoNativeMotDet` tinyint(3) unsigned NOT NULL default '1' AFTER `Sequence`;