diff --git a/pandora_console/extras/mr/40.sql b/pandora_console/extras/mr/40.sql index 95076e492b..fece05576f 100644 --- a/pandora_console/extras/mr/40.sql +++ b/pandora_console/extras/mr/40.sql @@ -4,6 +4,7 @@ UPDATE `talert_commands` SET name='Monitoring Event' WHERE name='Pandora FM 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/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql index 666fdea9d4..193705ed89 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql @@ -1271,6 +1271,7 @@ ALTER TABLE talert_snmp_action ADD COLUMN `al_field15` TEXT NOT NULL DEFAULT ""; -- ---------------------------------------------------------------------- ALTER TABLE tserver ADD COLUMN `server_keepalive` int(11) DEFAULT 0; ALTER TABLE `tserver` MODIFY COLUMN `server_keepalive` int(11) NOT NULL DEFAULT '0'; +ALTER TABLE `tserver` MODIFY COLUMN `version` varchar(25) NOT NULL DEFAULT ''; -- ---------------------------------------------------------------------- -- Table `tagente_estado` 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',