From dab143963678f8b8d10b53d242e40a391b2c0853 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Tue, 27 Apr 2010 12:01:46 +0000 Subject: [PATCH] 2010-04-27 Sergio Martin * extras/pandoradb_migrate_v3.0_to_v3.1.sql: Changed the database values of group from 1 to 0 and remove the group with Id=1 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2615 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ .../extras/pandoradb_migrate_v3.0_to_v3.1.sql | 17 +++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index b766b5dc05..25bddbd7ec 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-04-27 Sergio Martin + + * extras/pandoradb_migrate_v3.0_to_v3.1.sql: Changed + the database values of group from 1 to 0 and + remove the group with Id=1 + 2010-04-27 Miguel de Dios * include/functions_reporting.php: cleaned source code of diff --git a/pandora_console/extras/pandoradb_migrate_v3.0_to_v3.1.sql b/pandora_console/extras/pandoradb_migrate_v3.0_to_v3.1.sql index e00965238c..0916e18365 100644 --- a/pandora_console/extras/pandoradb_migrate_v3.0_to_v3.1.sql +++ b/pandora_console/extras/pandoradb_migrate_v3.0_to_v3.1.sql @@ -293,3 +293,20 @@ CREATE TABLE IF NOT EXISTS `tagente_datos_log4x` ( ALTER TABLE talert_templates MODIFY `type` ENUM ('regex', 'max_min', 'max', 'min', 'equal', 'not_equal', 'warning', 'critical', 'onchange'); + +-- ----------------------------------------------------- +-- Modifications of data in order to group All issue fix +-- ----------------------------------------------------- + +DELETE FROM tgrupo WHERE id_grupo = 1; +UPDATE tusuario_perfil SET id_grupo = 0 WHERE id_grupo = 1; +UPDATE tgis_map SET group_id = 0 WHERE group_id = 1; +UPDATE tgis_map_connection SET group_id = 0 WHERE group_id = 1; +UPDATE tgis_map_layer SET tgrupo_id_grupo = 0 WHERE tgrupo_id_grupo = 1; +UPDATE talert_actions SET id_group = 0 WHERE id_group = 1; +UPDATE talert_templates SET id_group = 0 WHERE id_group = 1; +UPDATE tevento SET id_grupo = 0 WHERE id_grupo = 1; +UPDATE tgraph SET id_group = 0 WHERE id_group = 1; +UPDATE tincidencia SET id_grupo = 0 WHERE id_grupo = 1; +UPDATE tlayout SET id_group = 0 WHERE id_group = 1; +UPDATE tplanned_downtime SET id_group = 0 WHERE id_group = 1;