diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql index e07b0fb8d2..cf24f0e238 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql @@ -135,3 +135,8 @@ INSERT INTO `tagent_custom_fields` (`name`) VALUES ('eHorusID'); -- in cron interval and problems with process data from pandora server -- --------------------------------------------------------------------- UPDATE tagente_modulo SET cron_interval = '' WHERE cron_interval LIKE '% %' + +-- --------------------------------------------------------------------- +-- Table `tgraph` +-- --------------------------------------------------------------------- +ALTER TABLE tgraph ADD COLUMN `percentil` int(4) unsigned default '0'; \ No newline at end of file diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql index 20941d72af..37ff6d3e3d 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql @@ -107,3 +107,8 @@ ALTER TABLE tlayout_data ADD COLUMN type_graph varchar(50) NOT NULL default 'are -- Table `tagent_custom_fields` -- --------------------------------------------------------------------- INSERT INTO tagent_custom_fields (name) VALUES ('eHorusID'); + +-- --------------------------------------------------------------------- +-- Table `tgraph` +-- --------------------------------------------------------------------- +ALTER TABLE tgraph ADD COLUMN percentil int(4) unsigned default '0'; \ No newline at end of file diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.postgreSQL.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.postgreSQL.sql index 4cb4553167..245c193bb3 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.postgreSQL.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.postgreSQL.sql @@ -38,3 +38,8 @@ ALTER TABLE tlayout ADD COLUMN background_color varchar(50) NOT NULL default '#F -- Table `tlayout_data` -- --------------------------------------------------------------------- ALTER TABLE tlayout_data ADD COLUMN type_graph varchar(50) NOT NULL default 'area'; + +-- --------------------------------------------------------------------- +-- Table `tgraph` +-- --------------------------------------------------------------------- +ALTER TABLE tgraph ADD COLUMN percentil int(4) unsigned default 0; diff --git a/pandora_console/pandoradb.oracle.sql b/pandora_console/pandoradb.oracle.sql index 8ee3810d8a..5d7ccb72f6 100644 --- a/pandora_console/pandoradb.oracle.sql +++ b/pandora_console/pandoradb.oracle.sql @@ -1196,7 +1196,8 @@ CREATE TABLE tgraph ( events NUMBER(5, 0) DEFAULT 0, stacked NUMBER(5, 0) DEFAULT 0, id_group NUMBER(19, 0) DEFAULT 0, - id_graph_template NUMBER(11, 0) DEFAULT 0 + id_graph_template NUMBER(11, 0) DEFAULT 0, + percentil NUMBER(5, 0) DEFAULT 0 ); CREATE SEQUENCE tgraph_s INCREMENT BY 1 START WITH 1; diff --git a/pandora_console/pandoradb.postgreSQL.sql b/pandora_console/pandoradb.postgreSQL.sql index 0396164618..f890776064 100644 --- a/pandora_console/pandoradb.postgreSQL.sql +++ b/pandora_console/pandoradb.postgreSQL.sql @@ -991,7 +991,8 @@ CREATE TABLE "tgraph" ( "events" SMALLINT NOT NULL default 0, "stacked" SMALLINT NOT NULL default 0, "id_group" BIGINT NOT NULL default 0, - "id_graph_template" INTEGER NOT NULL default 0 + "id_graph_template" INTEGER NOT NULL default 0, + "percentil" INTEGER NOT NULL default 0 ); -- ----------------------------------------------------- diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 398f05dc87..dfb9cc483a 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -1105,6 +1105,7 @@ CREATE TABLE IF NOT EXISTS `tgraph` ( `stacked` tinyint(1) UNSIGNED NOT NULL default 0, `id_group` mediumint(8) unsigned NULL default 0, `id_graph_template` int(11) NOT NULL default 0, + `percentil` tinyint(1) UNSIGNED NOT NULL default 0, PRIMARY KEY(`id_graph`) ) ENGINE = InnoDB DEFAULT CHARSET=utf8;