Fix SQL error 'key specification without a key length' when updating the database

This commit is contained in:
Emmanuel Papin 2014-11-29 23:07:58 +01:00
parent c7fb522563
commit 3a51926954
2 changed files with 2 additions and 2 deletions

View File

@ -528,7 +528,7 @@ CREATE TABLE `PluginsConfig` (
`Max` int(10) unsigned NULL default NULL,
`MonitorId` int(10) unsigned NOT NULL,
`ZoneId` int(10) unsigned NOT NULL,
`pluginName` tinytext NOT NULL,
`pluginName` varchar(64) NOT NULL,
PRIMARY KEY (`Id`),
KEY `ZoneId` (`ZoneId`),
KEY `MonitorId` (`MonitorId`),

View File

@ -16,7 +16,7 @@ CREATE TABLE `PluginsConfig` (
`Max` int(10) unsigned NULL default NULL,
`MonitorId` int(10) unsigned NOT NULL,
`ZoneId` int(10) unsigned NOT NULL,
`pluginName` tinytext NOT NULL,
`pluginName` varchar(64) NOT NULL,
PRIMARY KEY (`Id`),
KEY `ZoneId` (`ZoneId`),
KEY `MonitorId` (`MonitorId`),