From 19a8288f261c202bdf2256ae94cb2041299cc392 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Thu, 9 Jul 2020 17:39:08 +0200 Subject: [PATCH] Increase the size of tserver.version. Ref pandora_enterprise#4943 --- pandora_console/extras/mr/40.sql | 1 + pandora_console/pandoradb.sql | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/extras/mr/40.sql b/pandora_console/extras/mr/40.sql index 7ee43f98ed..ca6a50ce15 100644 --- a/pandora_console/extras/mr/40.sql +++ b/pandora_console/extras/mr/40.sql @@ -2,6 +2,7 @@ START TRANSACTION; ALTER TABLE `tservice_element` ADD COLUMN `rules` text; ALTER TABLE `tservice` ADD COLUMN `unknown_as_critical` tinyint(1) NOT NULL default 0 AFTER `warning`; +ALTER TABLE `tserver` MODIFY COLUMN `version` varchar(25) NOT NULL DEFAULT ''; UPDATE `tservice` SET `auto_calculate`=0; diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index f02c4409d7..68858bab4b 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -1073,7 +1073,7 @@ CREATE TABLE IF NOT EXISTS `tserver` ( `checksum` tinyint(3) unsigned NOT NULL default '0', `description` varchar(255) default NULL, `recon_server` tinyint(3) unsigned NOT NULL default '0', - `version` varchar(20) NOT NULL default '', + `version` varchar(25) NOT NULL default '', `plugin_server` tinyint(3) unsigned NOT NULL default '0', `prediction_server` tinyint(3) unsigned NOT NULL default '0', `wmi_server` tinyint(3) unsigned NOT NULL default '0',