Feature-plugins sql updates now in their own file that will be renamed zm_update-1.2x.x.sql at some point

This commit is contained in:
SteveGilvarry 2015-11-14 15:35:04 +11:00
parent 76ec7a4c51
commit 8e603690c9
1 changed files with 19 additions and 0 deletions

19
db/feature-plugins.sql Normal file
View File

@ -0,0 +1,19 @@
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` varchar(255) NOT NULL,
PRIMARY KEY (`Id`),
KEY `ZoneId` (`ZoneId`),
KEY `MonitorId` (`MonitorId`),
KEY `Name` (`Name`),
KEY `pluginName` (`pluginName`)
) ENGINE=InnoDB;
ALTER TABLE `Monitors` ADD `DoNativeMotDet` tinyint(3) unsigned NOT NULL default '1' AFTER `Sequence`;