From 43db0f308ef79c203efeddbf63908d82d6ef81e8 Mon Sep 17 00:00:00 2001 From: slerena Date: Fri, 18 Sep 2009 18:36:20 +0000 Subject: [PATCH] 2009-09-18 Sancho Lerena * pandoradb.sql: more changes to schema :(. Added id_group to custom graph * pandoradb_data.sql: Updated build number of DB schema, * extras/pandoradb_migrate_v2.x_to_v3.0.sql: Added new field for upgrade script. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1958 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 9 +++++++++ .../extras/pandoradb_migrate_v2.x_to_v3.0.sql | 4 ++++ pandora_console/pandoradb.sql | 1 + pandora_console/pandoradb_data.sql | 2 +- 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 69704b60af..ea709611cc 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,12 @@ +2009-09-18 Sancho Lerena + + * pandoradb.sql: more changes to schema :(. Added id_group to custom graph + + * pandoradb_data.sql: Updated build number of DB schema, + + * extras/pandoradb_migrate_v2.x_to_v3.0.sql: Added new field for upgrade + script. + 2009-09-17 Miguel de Dios * include/functions_modules.php: change the function "update_agent_module" diff --git a/pandora_console/extras/pandoradb_migrate_v2.x_to_v3.0.sql b/pandora_console/extras/pandoradb_migrate_v2.x_to_v3.0.sql index a4100e8da2..8e4f243ba7 100644 --- a/pandora_console/extras/pandoradb_migrate_v2.x_to_v3.0.sql +++ b/pandora_console/extras/pandoradb_migrate_v2.x_to_v3.0.sql @@ -290,4 +290,8 @@ ALTER TABLE tagente DROP id_network_server; ALTER TABLE tagente DROP id_plugin_server; ALTER TABLE tagente DROP id_prediction_server; +-- Sept 2009 + +ALTER TABLE tgraph ADD `id_group` mediumint(8) unsigned NULL default 0; + diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 97e4b2bb48..0e272b354c 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -695,6 +695,7 @@ CREATE TABLE IF NOT EXISTS `tgraph` ( `private` tinyint(1) UNSIGNED NOT NULL default 0, `events` tinyint(1) UNSIGNED NOT NULL default 0, `stacked` tinyint(1) UNSIGNED NOT NULL default 0, + `id_group` mediumint(8) unsigned NULL default 0, PRIMARY KEY(`id_graph`) ) ENGINE = InnoDB DEFAULT CHARSET=utf8; diff --git a/pandora_console/pandoradb_data.sql b/pandora_console/pandoradb_data.sql index c0ffdd00b2..eb08eae943 100644 --- a/pandora_console/pandoradb_data.sql +++ b/pandora_console/pandoradb_data.sql @@ -47,7 +47,7 @@ INSERT INTO `tconfig` VALUES (6,'graph_res','5'), (7,'step_compact','1'), (8,'db_scheme_version','3.0-dev'), -(9,'db_scheme_build','PD90901'), +(9,'db_scheme_build','PD90918'), (13,'show_unknown','0'), (14,'show_lastalerts','1'), (15,'style','pandora'),