From f52bf2f2da7d394cab9bb83cfd1b18d029814815 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Tue, 18 Oct 2016 12:27:53 +0200 Subject: [PATCH] Data precision... (Adapt db to new precision) --- pandora_console/pandoradb.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 57ce0a9ada..6aab2fd556 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -92,7 +92,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,2) default NULL, + `datos` double(22,5) default NULL, `utimestamp` bigint(20) default '0', KEY `data_index1` (`id_agente_modulo`), KEY `idx_utimestamp` USING BTREE (`utimestamp`) @@ -103,7 +103,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,2) default NULL, + `datos` double(22,5) default NULL, `utimestamp` int(20) unsigned default '0', KEY `data_inc_index_1` (`id_agente_modulo`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;