From d0346fc2f5a62f0adb33f19297875076c73e0584 Mon Sep 17 00:00:00 2001 From: javilanz Date: Wed, 6 Apr 2011 15:42:05 +0000 Subject: [PATCH] 2011-04-06 Javier Lanz * pandoradb.sql: Added 'id_group' & 'id_module_group' fields to treport_content table * pandoradb.postgreSQL.sql: Added 'id_group' & 'id_module_group' fields to treport_content table * pandoradb.oracle.sql: Added 'id_group' & 'id_module_group' fields to treport_content table * extras/pandoradb_migrate_v3.2_to_v4.0.sql: Added 'id_group' & 'id_module_group' fields to treport_content table git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4176 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 11 +++++++++++ .../extras/pandoradb_migrate_v3.2_to_v4.0.sql | 2 ++ pandora_console/pandoradb.oracle.sql | 4 +++- pandora_console/pandoradb.postgreSQL.sql | 4 +++- pandora_console/pandoradb.sql | 2 ++ 5 files changed, 21 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index f20ffc6f5d..460b15be9d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,14 @@ +2011-04-06 Javier Lanz + + * pandoradb.sql: Added 'id_group' & 'id_module_group' fields to + treport_content table + * pandoradb.postgreSQL.sql: Added 'id_group' & 'id_module_group' fields + to treport_content table + * pandoradb.oracle.sql: Added 'id_group' & 'id_module_group' fields to + treport_content table + * extras/pandoradb_migrate_v3.2_to_v4.0.sql: Added 'id_group' & + 'id_module_group' fields to treport_content table + 2011-04-06 Miguel de Dios * include/functions_graph.php: wip in the function "graphic_combined_module2". diff --git a/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql b/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql index f142b0bd22..fa596aa71f 100644 --- a/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql +++ b/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql @@ -40,6 +40,8 @@ ALTER TABLE `treport_content` ADD COLUMN `show_resume` INT NOT NULL DEFAULT 0; ALTER TABLE `treport_content` ADD COLUMN `order_uptodown` INT NOT NULL DEFAULT 0; ALTER TABLE `treport_content` ADD COLUMN `show_graph` INT NOT NULL DEFAULT 0; ALTER TABLE `treport_content` ADD COLUMN `group_by_agent` INT NOT NULL DEFAULT 0; +ALTER TABLE `treport_content` ADD COLUMN `id_group` int (10) unsigned NOT NULL DEFAULT 0; +ALTER TABLE `treport_content` ADD COLUMN `id_module_group` int (10) unsigned NOT NULL DEFAULT 0; -- ----------------------------------------------------- -- Table `treport_content_item` diff --git a/pandora_console/pandoradb.oracle.sql b/pandora_console/pandoradb.oracle.sql index 43df04e67e..9198519766 100644 --- a/pandora_console/pandoradb.oracle.sql +++ b/pandora_console/pandoradb.oracle.sql @@ -931,7 +931,9 @@ CREATE TABLE treport_content ( order_uptodown NUMBER(10, 0) default 0 NOT NULL, show_graph NUMBER(10, 0) default 0 NOT NULL, group_by_agent NUMBER(10, 0) default 0 NOT NULL, - style NCLOB default '' NOT NULL + style NCLOB default '' NOT NULL, + id_group NUMBER(10, 0) default 0 NOT NULL, + id_module_group NUMBER(10, 0) default 0 NOT NULL ); CREATE SEQUENCE treport_content_s INCREMENT BY 1 START WITH 1; diff --git a/pandora_console/pandoradb.postgreSQL.sql b/pandora_console/pandoradb.postgreSQL.sql index 132a2f8d57..159d841be8 100644 --- a/pandora_console/pandoradb.postgreSQL.sql +++ b/pandora_console/pandoradb.postgreSQL.sql @@ -751,7 +751,9 @@ CREATE TABLE "treport_content" ( "order_uptodown" INTEGER NOT NULL default 0, "show_graph" INTEGER NOT NULL default 0, "group_by_agent" INTEGER NOT NULL default 0, - "style" TEXT NOT NULL DEFAULT '' + "style" TEXT NOT NULL DEFAULT '', + "id_group" INTEGER NOT NULL default 0, + "id_module_group" INTEGER NOT NULL default 0 ); CREATE TABLE "treport_content_sla_combined" ( diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index e247b99e2b..63a06bf13f 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -824,6 +824,8 @@ CREATE TABLE IF NOT EXISTS `treport_content` ( `show_graph` INT NOT NULL default 0, `group_by_agent` INT NOT NULL default 0, `style` TEXT NOT NULL DEFAULT '', + `id_group` INT (10) unsigned NOT NULL DEFAULT 0, + `id_module_group` INT (10) unsigned NOT NULL DEFAULT 0, PRIMARY KEY(`id_rc`), FOREIGN KEY (`id_report`) REFERENCES treport(`id_report`) ON UPDATE CASCADE ON DELETE CASCADE