mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
2012-12-05 Sergio Martin <sergio.martin@artica.es>
* pandoradb.sql pandoradb.postgreSQL.sql pandoradb.oracle.sql extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql: Added database structure for new feature "module categories" git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7229 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
26a9477ef3
commit
99e2e179b4
@ -1,3 +1,13 @@
|
|||||||
|
2012-12-05 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* pandoradb.sql
|
||||||
|
pandoradb.postgreSQL.sql
|
||||||
|
pandoradb.oracle.sql
|
||||||
|
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql
|
||||||
|
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql
|
||||||
|
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql: Added
|
||||||
|
database structure for new feature "module categories"
|
||||||
|
|
||||||
2012-12-05 Sergio Martin <sergio.martin@artica.es>
|
2012-12-05 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* include/functions_graph.php: Fix a statistics bug on
|
* include/functions_graph.php: Fix a statistics bug on
|
||||||
|
@ -165,6 +165,7 @@ ALTER TABLE `tagente_modulo` ADD COLUMN `critical_inverse` tinyint(1) unsigned d
|
|||||||
ALTER TABLE `tagente_modulo` ADD COLUMN `warning_inverse` tinyint(1) unsigned default '0';
|
ALTER TABLE `tagente_modulo` ADD COLUMN `warning_inverse` tinyint(1) unsigned default '0';
|
||||||
ALTER TABLE `tagente_modulo` ADD COLUMN `cron_interval` varchar(100) default '';
|
ALTER TABLE `tagente_modulo` ADD COLUMN `cron_interval` varchar(100) default '';
|
||||||
ALTER TABLE `tagente_modulo` ADD COLUMN `max_retries` int(4) UNSIGNED NOT NULL default 0;
|
ALTER TABLE `tagente_modulo` ADD COLUMN `max_retries` int(4) UNSIGNED NOT NULL default 0;
|
||||||
|
ALTER TABLE `tagente_modulo` ADD COLUMN `id_category` int(10) NOT NULL DEFAULT '0';
|
||||||
|
|
||||||
-- Move the number of retries for web modules from plugin_pass to max_retries
|
-- Move the number of retries for web modules from plugin_pass to max_retries
|
||||||
UPDATE `tagente_modulo` SET max_retries=plugin_pass WHERE id_modulo=7;
|
UPDATE `tagente_modulo` SET max_retries=plugin_pass WHERE id_modulo=7;
|
||||||
@ -183,6 +184,7 @@ ALTER TABLE `tnetwork_component` ADD COLUMN `unknown_instructions` TEXT NOT NULL
|
|||||||
ALTER TABLE `tnetwork_component` ADD COLUMN `critical_inverse` tinyint(1) unsigned default '0';
|
ALTER TABLE `tnetwork_component` ADD COLUMN `critical_inverse` tinyint(1) unsigned default '0';
|
||||||
ALTER TABLE `tnetwork_component` ADD COLUMN `warning_inverse` tinyint(1) unsigned default '0';
|
ALTER TABLE `tnetwork_component` ADD COLUMN `warning_inverse` tinyint(1) unsigned default '0';
|
||||||
ALTER TABLE `tnetwork_component` ADD COLUMN `max_retries` int(4) UNSIGNED NOT NULL default 0;
|
ALTER TABLE `tnetwork_component` ADD COLUMN `max_retries` int(4) UNSIGNED NOT NULL default 0;
|
||||||
|
ALTER TABLE `tnetwork_component` ADD COLUMN `id_category` int(10) NOT NULL DEFAULT '0';
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
-- Table `tgraph_source` Alter table to allow negative values in weight
|
-- Table `tgraph_source` Alter table to allow negative values in weight
|
||||||
@ -393,3 +395,14 @@ ALTER TABLE `talert_templates` ADD COLUMN `field10_recovery` TEXT NOT NULL;
|
|||||||
-- ----------------------------------------------------------------------
|
-- ----------------------------------------------------------------------
|
||||||
ALTER TABLE `talert_commands` ADD COLUMN `fields_descriptions` TEXT;
|
ALTER TABLE `talert_commands` ADD COLUMN `fields_descriptions` TEXT;
|
||||||
ALTER TABLE `talert_commands` ADD COLUMN `fields_values` TEXT;
|
ALTER TABLE `talert_commands` ADD COLUMN `fields_values` TEXT;
|
||||||
|
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
-- Table `tcategory`
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS `tcategory` (
|
||||||
|
`id` int(10) unsigned NOT NULL auto_increment,
|
||||||
|
`name` varchar(600) NOT NULL default '',
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
|
||||||
|
@ -253,6 +253,7 @@ ALTER TABLE talert_compound ADD (special_day NUMBER(5,0) default 0);
|
|||||||
-- -----------------------------------------------------
|
-- -----------------------------------------------------
|
||||||
|
|
||||||
ALTER TABLE tnetwork_component ADD (unit CLOB default '';
|
ALTER TABLE tnetwork_component ADD (unit CLOB default '';
|
||||||
|
ALTER TABLE tnetwork_component ADD (id_category NUMBER(10, 0) default 0);
|
||||||
|
|
||||||
-- -----------------------------------------------------
|
-- -----------------------------------------------------
|
||||||
-- Table talert_commands
|
-- Table talert_commands
|
||||||
@ -344,6 +345,7 @@ ALTER TABLE tagente_modulo ADD (warning_instructions VARCHAR2(255) default '');
|
|||||||
ALTER TABLE tagente_modulo ADD (unknown_instructions VARCHAR2(255) default '');
|
ALTER TABLE tagente_modulo ADD (unknown_instructions VARCHAR2(255) default '');
|
||||||
ALTER TABLE tagente_modulo ADD (critical_inverse NUMBER(1, 0) default 0 NOT NULL);
|
ALTER TABLE tagente_modulo ADD (critical_inverse NUMBER(1, 0) default 0 NOT NULL);
|
||||||
ALTER TABLE tagente_modulo ADD (warning_inverse NUMBER(1, 0) default 0 NOT NULL);
|
ALTER TABLE tagente_modulo ADD (warning_inverse NUMBER(1, 0) default 0 NOT NULL);
|
||||||
|
ALTER TABLE tagente_modulo ADD (id_category NUMBER(10, 0) default 0);
|
||||||
|
|
||||||
-- -----------------------------------------------------
|
-- -----------------------------------------------------
|
||||||
-- Table tnetwork_component
|
-- Table tnetwork_component
|
||||||
@ -425,3 +427,11 @@ ALTER TABLE talert_templates ADD (field10_recovery CLOB default '');
|
|||||||
-- ----------------------------------------------------------------------
|
-- ----------------------------------------------------------------------
|
||||||
ALTER TABLE talert_commands ADD (fields_descriptions CLOB default '');
|
ALTER TABLE talert_commands ADD (fields_descriptions CLOB default '');
|
||||||
ALTER TABLE talert_commands ADD (fields_values CLOB default '');
|
ALTER TABLE talert_commands ADD (fields_values CLOB default '');
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table "tcategory"
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
CREATE TABLE tcategory (
|
||||||
|
id NUMBER(10, 0) NOT NULL PRIMARY KEY,
|
||||||
|
name VARCHAR2(600) default '' NOT NULL
|
||||||
|
);
|
||||||
|
@ -188,6 +188,7 @@ ALTER TABLE "tagente_modulo" ADD COLUMN "critical_inverse" SMALLINT NOT NULL def
|
|||||||
ALTER TABLE "tagente_modulo" ADD COLUMN "warning_inverse" SMALLINT NOT NULL default 0;
|
ALTER TABLE "tagente_modulo" ADD COLUMN "warning_inverse" SMALLINT NOT NULL default 0;
|
||||||
ALTER TABLE "tagente_modulo" ADD COLUMN "cron_interval" varchar(100) default '';
|
ALTER TABLE "tagente_modulo" ADD COLUMN "cron_interval" varchar(100) default '';
|
||||||
ALTER TABLE "tagente_modulo" ADD COLUMN "max_retries" INTEGER default 0;
|
ALTER TABLE "tagente_modulo" ADD COLUMN "max_retries" INTEGER default 0;
|
||||||
|
ALTER TABLE "tagente_modulo" ADD COLUMN "id_category" INTEGER default 0;
|
||||||
|
|
||||||
-- Move the number of retries for web modules from plugin_pass to max_retries
|
-- Move the number of retries for web modules from plugin_pass to max_retries
|
||||||
UPDATE "tagente_modulo" SET max_retries=plugin_pass WHERE id_modulo=7;
|
UPDATE "tagente_modulo" SET max_retries=plugin_pass WHERE id_modulo=7;
|
||||||
@ -267,6 +268,7 @@ ALTER TABLE "talert_compound" ADD COLUMN "special_day" SMALLINT default 0;
|
|||||||
|
|
||||||
ALTER TABLE "tnetwork_component" ADD COLUMN "unit" text default '';
|
ALTER TABLE "tnetwork_component" ADD COLUMN "unit" text default '';
|
||||||
ALTER TABLE "tnetwork_component" ADD COLUMN "max_retries" INTEGER default 0;
|
ALTER TABLE "tnetwork_component" ADD COLUMN "max_retries" INTEGER default 0;
|
||||||
|
ALTER TABLE "tnetwork_component" ADD COLUMN "id_category" INTEGER default 0;
|
||||||
|
|
||||||
-- -----------------------------------------------------
|
-- -----------------------------------------------------
|
||||||
-- Table "talert_commands"
|
-- Table "talert_commands"
|
||||||
@ -416,3 +418,10 @@ ALTER TABLE "talert_templates" ADD COLUMN "field10_recovery" TEXT NOT NULL;
|
|||||||
ALTER TABLE "talert_commands" ADD COLUMN "fields_descriptions" TEXT;
|
ALTER TABLE "talert_commands" ADD COLUMN "fields_descriptions" TEXT;
|
||||||
ALTER TABLE "talert_commands" ADD COLUMN "fields_values" TEXT;
|
ALTER TABLE "talert_commands" ADD COLUMN "fields_values" TEXT;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table "tcategory"
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS "tcategory" (
|
||||||
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
||||||
|
"name" varchar(600) NOT NULL default '',
|
||||||
|
);
|
||||||
|
@ -245,6 +245,7 @@ CREATE TABLE tagente_modulo (
|
|||||||
unknown_instructions VARCHAR2(255) default '',
|
unknown_instructions VARCHAR2(255) default '',
|
||||||
critical_inverse NUMBER(1, 0) default 0 NOT NULL,
|
critical_inverse NUMBER(1, 0) default 0 NOT NULL,
|
||||||
warning_inverse NUMBER(1, 0) default 0 NOT NULL,
|
warning_inverse NUMBER(1, 0) default 0 NOT NULL,
|
||||||
|
id_category NUMBER(10, 0) default 0 NOT NULL,
|
||||||
CONSTRAINT t_agente_modulo_wizard_level_cons CHECK (wizard_level IN ('basic','advanced','custom','nowizard'))
|
CONSTRAINT t_agente_modulo_wizard_level_cons CHECK (wizard_level IN ('basic','advanced','custom','nowizard'))
|
||||||
);
|
);
|
||||||
CREATE INDEX tagente_modulo_id_agente_idx ON tagente_modulo(id_agente);
|
CREATE INDEX tagente_modulo_id_agente_idx ON tagente_modulo(id_agente);
|
||||||
@ -754,6 +755,7 @@ CREATE TABLE tnetwork_component (
|
|||||||
unknown_instructions VARCHAR2(255) default '',
|
unknown_instructions VARCHAR2(255) default '',
|
||||||
critical_inverse NUMBER(1, 0) default 0 NOT NULL,
|
critical_inverse NUMBER(1, 0) default 0 NOT NULL,
|
||||||
warning_inverse NUMBER(1, 0) default 0 NOT NULL,
|
warning_inverse NUMBER(1, 0) default 0 NOT NULL,
|
||||||
|
id_category NUMBER(10, 0) default 0 NOT NULL,
|
||||||
CONSTRAINT t_network_component_wizard_level_cons CHECK (wizard_level IN ('basic','advanced','custom','nowizard'))
|
CONSTRAINT t_network_component_wizard_level_cons CHECK (wizard_level IN ('basic','advanced','custom','nowizard'))
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1770,3 +1772,11 @@ CREATE TABLE IF NOT EXISTS tevent_response (
|
|||||||
params CLOB
|
params CLOB
|
||||||
);
|
);
|
||||||
CREATE SEQUENCE tevent_response_s INCREMENT BY 1 START WITH 1;
|
CREATE SEQUENCE tevent_response_s INCREMENT BY 1 START WITH 1;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table "tcategory"
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
CREATE TABLE tcategory (
|
||||||
|
id NUMBER(10, 0) NOT NULL PRIMARY KEY,
|
||||||
|
name VARCHAR2(600) default '' NOT NULL
|
||||||
|
);
|
||||||
|
@ -233,7 +233,8 @@ CREATE TABLE "tagente_modulo" (
|
|||||||
"unknown_instructions" TEXT default '',
|
"unknown_instructions" TEXT default '',
|
||||||
"quiet" SMALLINT NOT NULL default 0,
|
"quiet" SMALLINT NOT NULL default 0,
|
||||||
"critical_inverse" SMALLINT NOT NULL default 0,
|
"critical_inverse" SMALLINT NOT NULL default 0,
|
||||||
"warning_inverse" SMALLINT NOT NULL default 0
|
"warning_inverse" SMALLINT NOT NULL default 0,
|
||||||
|
"id_category" INTEGER NOT NULL default 0
|
||||||
);
|
);
|
||||||
CREATE INDEX "tagente_modulo_id_agente_idx" ON "tagente_modulo"("id_agente");
|
CREATE INDEX "tagente_modulo_id_agente_idx" ON "tagente_modulo"("id_agente");
|
||||||
CREATE INDEX "tagente_modulo_id_tipo_modulo_idx" ON "tagente_modulo"("id_tipo_modulo");
|
CREATE INDEX "tagente_modulo_id_tipo_modulo_idx" ON "tagente_modulo"("id_tipo_modulo");
|
||||||
@ -627,7 +628,8 @@ CREATE TABLE "tnetwork_component" (
|
|||||||
"warning_instructions" TEXT default '',
|
"warning_instructions" TEXT default '',
|
||||||
"unknown_instructions" TEXT default '',
|
"unknown_instructions" TEXT default '',
|
||||||
"critical_inverse" SMALLINT NOT NULL default 0,
|
"critical_inverse" SMALLINT NOT NULL default 0,
|
||||||
"warning_inverse" SMALLINT NOT NULL default 0
|
"warning_inverse" SMALLINT NOT NULL default 0,
|
||||||
|
"id_category" INTEGER NOT NULL default 0
|
||||||
);
|
);
|
||||||
|
|
||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
@ -1530,3 +1532,11 @@ CREATE TABLE IF NOT EXISTS "tevent_response" (
|
|||||||
"new_window" INTEGER NOT NULL DEFAULT 0,
|
"new_window" INTEGER NOT NULL DEFAULT 0,
|
||||||
"params" TEXT,
|
"params" TEXT,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table "tcategory"
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS "tcategory" (
|
||||||
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
||||||
|
"name" varchar(600) NOT NULL default '',
|
||||||
|
);
|
||||||
|
@ -234,6 +234,7 @@ CREATE TABLE IF NOT EXISTS `tagente_modulo` (
|
|||||||
`quiet` tinyint(1) NOT NULL default '0',
|
`quiet` tinyint(1) NOT NULL default '0',
|
||||||
`critical_inverse` tinyint(1) unsigned default '0',
|
`critical_inverse` tinyint(1) unsigned default '0',
|
||||||
`warning_inverse` tinyint(1) unsigned default '0',
|
`warning_inverse` tinyint(1) unsigned default '0',
|
||||||
|
`id_category` int(10) default 0,
|
||||||
PRIMARY KEY (`id_agente_modulo`),
|
PRIMARY KEY (`id_agente_modulo`),
|
||||||
KEY `main_idx` (`id_agente_modulo`,`id_agente`),
|
KEY `main_idx` (`id_agente_modulo`,`id_agente`),
|
||||||
KEY `tam_agente` (`id_agente`),
|
KEY `tam_agente` (`id_agente`),
|
||||||
@ -705,6 +706,7 @@ CREATE TABLE IF NOT EXISTS `tnetwork_component` (
|
|||||||
`unknown_instructions` text NOT NULL default '',
|
`unknown_instructions` text NOT NULL default '',
|
||||||
`critical_inverse` tinyint(1) unsigned default '0',
|
`critical_inverse` tinyint(1) unsigned default '0',
|
||||||
`warning_inverse` tinyint(1) unsigned default '0',
|
`warning_inverse` tinyint(1) unsigned default '0',
|
||||||
|
`id_category` int(10) default 0,
|
||||||
PRIMARY KEY (`id_nc`)
|
PRIMARY KEY (`id_nc`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
@ -1658,3 +1660,12 @@ CREATE TABLE IF NOT EXISTS `tevent_response` (
|
|||||||
`params` TEXT NOT NULL,
|
`params` TEXT NOT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
-- Table `tcategory`
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS `tcategory` (
|
||||||
|
`id` int(10) unsigned NOT NULL auto_increment,
|
||||||
|
`name` varchar(600) NOT NULL default '',
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user