From 149cd29d667b1ed1cca021f91b50cb715c123e18 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 10 Dec 2012 10:50:20 +0000 Subject: [PATCH] 2012-12-10 Sergio Martin * 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 tags column to the network components table git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7244 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 10 ++++++++++ .../extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql | 1 + .../extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql | 2 +- .../pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql | 1 + pandora_console/pandoradb.oracle.sql | 1 + pandora_console/pandoradb.postgreSQL.sql | 3 ++- pandora_console/pandoradb.sql | 1 + 7 files changed, 17 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 00d89c7e6d..ed7c8de039 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,13 @@ +2012-12-10 Sergio Martin + + * 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 + tags column to the network components table + 2012-12-09 Sancho Lerena * pandoradb.sql: Replaced ^---.. comments with "-- -.." to avoid problems diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql index 123c940cb5..571aeaf973 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql @@ -185,6 +185,7 @@ ALTER TABLE `tnetwork_component` ADD COLUMN `critical_inverse` tinyint(1) unsign 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 `id_category` int(10) NOT NULL DEFAULT '0'; +ALTER TABLE `tnetwork_component` ADD COLUMN `tags` TEXT NOT NULL default ''; ------------------------------------------------------------------------ -- Table `tgraph_source` Alter table to allow negative values in weight diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql index 39400c160f..7d879a6d57 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql @@ -356,7 +356,7 @@ ALTER TABLE tnetwork_component ADD (unknown_instructions VARCHAR2(255) default ' ALTER TABLE tnetwork_component ADD (critical_inverse NUMBER(1, 0) default 0 NOT NULL); ALTER TABLE tnetwork_component ADD (warning_inverse NUMBER(1, 0) default 0 NOT NULL); ALTER TABLE tnetwork_component ADD (max_retries NUMBER(10, 0) default 0); -evento +ALTER TABLE tnetwork_component ADD (tags VARCHAR2(255) default ''); ------------------------------------------------------------------------ -- Table tnetwork_map diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql index ab826d3a06..39838e6a9d 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql @@ -348,6 +348,7 @@ ALTER TABLE "tnetwork_component" ADD COLUMN "warning_instructions" text default ALTER TABLE "tnetwork_component" ADD COLUMN "unknown_instructions" text default ''; ALTER TABLE "tnetwork_component" ADD COLUMN "critical_inverse" SMALLINT NOT NULL default 0; ALTER TABLE "tnetwork_component" ADD COLUMN "warning_inverse" SMALLINT NOT NULL default 0; +ALTER TABLE "tnetwork_component" ADD COLUMN "tags" text default ''; ------------------------------------------------------------------------ -- Table "tnetwork_map" diff --git a/pandora_console/pandoradb.oracle.sql b/pandora_console/pandoradb.oracle.sql index 5cf158745f..7359f3b57f 100644 --- a/pandora_console/pandoradb.oracle.sql +++ b/pandora_console/pandoradb.oracle.sql @@ -756,6 +756,7 @@ CREATE TABLE tnetwork_component ( critical_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, + tags CLOB, CONSTRAINT t_network_component_wizard_level_cons CHECK (wizard_level IN ('basic','advanced','custom','nowizard')) ); diff --git a/pandora_console/pandoradb.postgreSQL.sql b/pandora_console/pandoradb.postgreSQL.sql index 791b126dd3..bf74e5e863 100644 --- a/pandora_console/pandoradb.postgreSQL.sql +++ b/pandora_console/pandoradb.postgreSQL.sql @@ -629,7 +629,8 @@ CREATE TABLE "tnetwork_component" ( "unknown_instructions" TEXT default '', "critical_inverse" SMALLINT NOT NULL default 0, "warning_inverse" SMALLINT NOT NULL default 0, - "id_category" INTEGER NOT NULL default 0 + "id_category" INTEGER NOT NULL default 0, + "tags" text NOT NULL ); -- --------------------------------------------------------------------- diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index e64edd4783..23ddf970d9 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -707,6 +707,7 @@ CREATE TABLE IF NOT EXISTS `tnetwork_component` ( `critical_inverse` tinyint(1) unsigned default '0', `warning_inverse` tinyint(1) unsigned default '0', `id_category` int(10) default 0, + `tags` text NOT NULL, PRIMARY KEY (`id_nc`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;