2011-03-28 Miguel de Dios <miguel.dedios@artica.es>

* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
	extras/pandoradb_migrate_v3.2_to_v4.0.sql: added column "style" for to
	add style (as json encode) the many styles for the contents.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4138 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2011-03-28 14:35:08 +00:00
parent 6b2a00a87d
commit 1ad4276daf
5 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-03-28 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_v3.2_to_v4.0.sql: added column "style" for to
add style (as json encode) the many styles for the contents.
2011-03-28 Javier Lanz <javier.lanz@artica.es> 2011-03-28 Javier Lanz <javier.lanz@artica.es>
* include/functions_reporting.php: Added get_agentmodule_sla_array * include/functions_reporting.php: Added get_agentmodule_sla_array

View File

@ -68,3 +68,7 @@ ALTER TABLE `talert_actions` ADD COLUMN `action_threshold` int(10) NOT NULL DEFA
ALTER TABLE `talert_template_module_actions` ADD COLUMN `module_action_threshold` int(10) NOT NULL DEFAULT '0'; ALTER TABLE `talert_template_module_actions` ADD COLUMN `module_action_threshold` int(10) NOT NULL DEFAULT '0';
ALTER TABLE `talert_template_module_actions` ADD COLUMN `last_execution` bigint(20) NOT NULL DEFAULT '0'; ALTER TABLE `talert_template_module_actions` ADD COLUMN `last_execution` bigint(20) NOT NULL DEFAULT '0';
-- -----------------------------------------------------
-- Table `treport_content`
-- -----------------------------------------------------
ALTER TABLE `treport_content` ADD COLUMN `style` TEXT NOT NULL DEFAULT '';

View File

@ -931,6 +931,7 @@ CREATE TABLE treport_content (
order_uptodown NUMBER(10, 0) default 0 NOT NULL, order_uptodown NUMBER(10, 0) default 0 NOT NULL,
show_graph 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 group_by_agent NUMBER(10, 0) default 0 NOT NULL
style NCLOB default '' NOT NULL
); );
CREATE SEQUENCE treport_content_s INCREMENT BY 1 START WITH 1; CREATE SEQUENCE treport_content_s INCREMENT BY 1 START WITH 1;

View File

@ -750,7 +750,8 @@ CREATE TABLE "treport_content" (
"show_resume" INTEGER NOT NULL default 0, "show_resume" INTEGER NOT NULL default 0,
"order_uptodown" INTEGER NOT NULL default 0, "order_uptodown" INTEGER NOT NULL default 0,
"show_graph" INTEGER NOT NULL default 0, "show_graph" INTEGER NOT NULL default 0,
"group_by_agent" INTEGER NOT NULL default 0 "group_by_agent" INTEGER NOT NULL default 0,
"style" TEXT NOT NULL DEFAULT ''
); );
CREATE TABLE "treport_content_sla_combined" ( CREATE TABLE "treport_content_sla_combined" (

View File

@ -823,6 +823,7 @@ CREATE TABLE IF NOT EXISTS `treport_content` (
`order_uptodown` INT NOT NULL default 0, `order_uptodown` INT NOT NULL default 0,
`show_graph` INT NOT NULL default 0, `show_graph` INT NOT NULL default 0,
`group_by_agent` INT NOT NULL default 0, `group_by_agent` INT NOT NULL default 0,
`style` TEXT NOT NULL DEFAULT '',
PRIMARY KEY(`id_rc`), PRIMARY KEY(`id_rc`),
FOREIGN KEY (`id_report`) REFERENCES treport(`id_report`) FOREIGN KEY (`id_report`) REFERENCES treport(`id_report`)
ON UPDATE CASCADE ON DELETE CASCADE ON UPDATE CASCADE ON DELETE CASCADE