From d95eec0188748df718ab6e8dea0969f11f92268d Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Tue, 25 May 2021 09:57:23 +0200 Subject: [PATCH] Enlarge numeric data fields --- .../extras/pandoradb_migrate_6.0_to_7.0.mysql.sql | 10 +++++----- pandora_console/pandoradb.sql | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) 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 6096c8143d..1335550ef7 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 @@ -1019,7 +1019,7 @@ CREATE TABLE IF NOT EXISTS `tmetaconsole_event` ( -- Criticity: 5 - Minor -- Criticity: 6 - Major -ALTER TABLE `tmetaconsole_event` ADD COLUMN `data` double(22,5) default NULL; +ALTER TABLE `tmetaconsole_event` ADD COLUMN `data` double(50,5) default NULL; ALTER TABLE `tmetaconsole_event` ADD COLUMN `module_status` int(4) NOT NULL default '0'; ALTER TABLE `tmetaconsole_event` ADD INDEX `server_id` (`server_id`); ALTER TABLE `tmetaconsole_event` ADD INDEX `tme_timestamp_idx` (`timestamp`); @@ -1072,7 +1072,7 @@ CREATE TABLE IF NOT EXISTS `tmetaconsole_event_history` ( -- Criticity: 5 - Minor -- Criticity: 6 - Major -ALTER TABLE `tmetaconsole_event_history` ADD COLUMN `data` double(22,5) default NULL; +ALTER TABLE `tmetaconsole_event_history` ADD COLUMN `data` double(50,5) default NULL; ALTER TABLE `tmetaconsole_event_history` ADD COLUMN `module_status` int(4) NOT NULL default '0'; ALTER TABLE `tmetaconsole_event_history` ADD INDEX `tmeh_estado_idx` (`estado`); ALTER TABLE `tmetaconsole_event_history` ADD INDEX `tmeh_timestamp_idx` (`timestamp`); @@ -1556,7 +1556,7 @@ ALTER TABLE `tagente_modulo` ADD COLUMN `debug_content` varchar(200); -- --------------------------------------------------------------------- -- Table `tagente_datos` -- --------------------------------------------------------------------- -ALTER TABLE tagente_datos MODIFY `datos` double(22,5); +ALTER TABLE tagente_datos MODIFY `datos` double(50,5); ALTER TABLE `tagente_datos` DROP INDEX `data_index1`, ADD INDEX `data_index1` (`id_agente_modulo`, `utimestamp`); -- --------------------------------------------------------------------- @@ -1567,7 +1567,7 @@ ALTER TABLE `tagente_datos_string` MODIFY COLUMN `datos` mediumtext NOT NULL, DR -- --------------------------------------------------------------------- -- Table `tagente_datos_inc` -- --------------------------------------------------------------------- -ALTER TABLE tagente_datos_inc MODIFY `datos` double(22,5); +ALTER TABLE tagente_datos_inc MODIFY `datos` double(50,5); -- --------------------------------------------------------------------- -- Table `tnetwork_component` @@ -2341,7 +2341,7 @@ CREATE TABLE IF NOT EXISTS `tagent_custom_fields_filter` ( -- --------------------------------------------------------------------- -- Table `tevento` -- --------------------------------------------------------------------- -ALTER TABLE `tevento` ADD COLUMN `data` double(22,5) default NULL; +ALTER TABLE `tevento` ADD COLUMN `data` double(50,5) default NULL; ALTER TABLE `tevento` ADD COLUMN `module_status` int(4) NOT NULL default '0'; diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index cbbda24ab5..ec7d1a2072 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -100,7 +100,7 @@ CREATE TABLE IF NOT EXISTS `tagente` ( -- --------------------------------------------------------------------- CREATE TABLE IF NOT EXISTS `tagente_datos` ( `id_agente_modulo` int(10) unsigned NOT NULL default '0', - `datos` double(22,5) default NULL, + `datos` double(50,5) default NULL, `utimestamp` bigint(20) default '0', KEY `data_index1` (`id_agente_modulo`, `utimestamp`), KEY `idx_utimestamp` USING BTREE (`utimestamp`) @@ -111,7 +111,7 @@ CREATE TABLE IF NOT EXISTS `tagente_datos` ( -- --------------------------------------------------------------------- CREATE TABLE IF NOT EXISTS `tagente_datos_inc` ( `id_agente_modulo` int(10) unsigned NOT NULL default '0', - `datos` double(22,5) default NULL, + `datos` double(50,5) default NULL, `utimestamp` int(20) unsigned default '0', KEY `data_inc_index_1` (`id_agente_modulo`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -681,7 +681,7 @@ CREATE TABLE IF NOT EXISTS `tevento` ( `owner_user` VARCHAR(100) NOT NULL DEFAULT '', `ack_utimestamp` BIGINT(20) NOT NULL DEFAULT '0', `custom_data` TEXT NOT NULL, - `data` double(22,5) default NULL, + `data` double(50,5) default NULL, `module_status` int(4) NOT NULL default '0', PRIMARY KEY (`id_evento`), KEY `idx_agente` (`id_agente`), @@ -3275,7 +3275,7 @@ CREATE TABLE IF NOT EXISTS `tmetaconsole_event` ( `ack_utimestamp` BIGINT(20) NOT NULL DEFAULT '0', `server_id` int(10) NOT NULL, `custom_data` TEXT NOT NULL DEFAULT '', - `data` double(22,5) default NULL, + `data` double(50,5) default NULL, `module_status` int(4) NOT NULL default '0', PRIMARY KEY (`id_evento`), KEY `idx_agente` (`id_agente`), @@ -3328,7 +3328,7 @@ CREATE TABLE IF NOT EXISTS `tmetaconsole_event_history` ( `ack_utimestamp` BIGINT(20) NOT NULL DEFAULT '0', `server_id` int(10) NOT NULL, `custom_data` TEXT NOT NULL DEFAULT '', - `data` double(22,5) default NULL, + `data` double(50,5) default NULL, `module_status` int(4) NOT NULL default '0', PRIMARY KEY (`id_evento`), KEY `idx_agente` (`id_agente`),