Add sql request for plugin support in existing sql update file
This commit is contained in:
parent
f1ce69a8c1
commit
208c72b25e
|
@ -1,27 +0,0 @@
|
||||||
--
|
|
||||||
-- 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` varchar(64) 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`;
|
|
|
@ -1 +1,21 @@
|
||||||
ALTER TABLE Monitors MODIFY Device tinytext;
|
ALTER TABLE Monitors MODIFY Device tinytext;
|
||||||
|
|
||||||
|
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`;
|
||||||
|
|
Loading…
Reference in New Issue