diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index cb02b198f3..f12885daf8 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,14 @@ +2013-09-16 Juan Manuel Ramon + + * 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: + Changed data type in field 'name' of 'tnetwork_component' table + to TEXT/CLOB. + 2013-09-13 Ramon Novoa * godmode/setup/setup_netflow.php: Added a help tip to the 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 48c37f0dd9..f29432c6a4 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 @@ -1154,3 +1154,7 @@ ALTER TABLE tagente_datos_inc DROP COLUMN id_adi; UPDATE tconfig SET value = 'pandora_logo_head.png' WHERE token = 'custom_logo'; +-- --------------------------------------------------------------------- +-- Table `tnetwork_component` (16/09/13) +-- --------------------------------------------------------------------- +ALTER TABLE `tnetwork_component` CHANGE COLUMN `name` `name` TEXT NOT NULL; \ No newline at end of file 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 5825a4b37b..79153436fc 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 @@ -323,7 +323,6 @@ ALTER TABLE tnetwork_component ADD (macros CLOB default ''); ALTER TABLE tnetwork_component ADD (disabled_types_event CLOB default ''); ALTER TABLE tnetwork_component ADD (module_macros CLOB default ''); - -- ----------------------------------------------------- -- Table tagente_modulo -- ----------------------------------------------------- @@ -1157,3 +1156,8 @@ ALTER TABLE tagente_datos_inc DROP COLUMN id_adi; -- --------------------------------------------------------------------- UPDATE tconfig SET value = 'pandora_logo_head.png' WHERE token = 'custom_logo'; + +-- --------------------------------------------------------------------- +-- Table `tnetwork_component` (16/09/13) +-- --------------------------------------------------------------------- +ALTER TABLE tnetwork_component MODIFY (name CLOB NOT NULL); 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 4fb53b1585..ce538f2423 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 @@ -1140,3 +1140,8 @@ ALTER TABLE tagente_datos_inc DROP COLUMN id_adi; -- --------------------------------------------------------------------- UPDATE tconfig SET value = 'pandora_logo_head.png' WHERE token = 'custom_logo'; + +-- --------------------------------------------------------------------- +-- Table `tnetwork_component` (16/09/13) +-- --------------------------------------------------------------------- +ALTER TABLE "tnetwork_component" ALTER COLUMN "name" TYPE text NOT NULL; \ No newline at end of file diff --git a/pandora_console/pandoradb.oracle.sql b/pandora_console/pandoradb.oracle.sql index 923975a996..ed0ec2fdd9 100644 --- a/pandora_console/pandoradb.oracle.sql +++ b/pandora_console/pandoradb.oracle.sql @@ -658,7 +658,7 @@ CREATE OR REPLACE TRIGGER tmodule_group_inc BEFORE INSERT ON tmodule_group REFER CREATE TABLE tnetwork_component ( id_nc NUMBER(10, 0) NOT NULL PRIMARY KEY, - name VARCHAR2(80) NOT NULL, + name CLOB NOT NULL, description VARCHAR2(300) default NULL, id_group NUMBER(10, 0) default 1 NOT NULL, type NUMBER(10, 0) default 6 NOT NULL, diff --git a/pandora_console/pandoradb.postgreSQL.sql b/pandora_console/pandoradb.postgreSQL.sql index 9870fbcb33..d7f25f8f36 100644 --- a/pandora_console/pandoradb.postgreSQL.sql +++ b/pandora_console/pandoradb.postgreSQL.sql @@ -557,7 +557,7 @@ CREATE TABLE "tmodule_group" ( CREATE TYPE type_tlocal_component_wizard_level AS ENUM ('basic','advanced','nowizard'); CREATE TABLE "tnetwork_component" ( "id_nc" SERIAL NOT NULL PRIMARY KEY, - "name" varchar(80) NOT NULL, + "name" text NOT NULL, "description" varchar(250) default NULL, "id_group" INTEGER NOT NULL default 1, "type" INTEGER NOT NULL default 6, diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 7e434320d3..2c07a463af 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -610,7 +610,7 @@ CREATE TABLE IF NOT EXISTS `tmodule_group` ( -- ---------------------------------------------------------------------- CREATE TABLE IF NOT EXISTS `tnetwork_component` ( `id_nc` int(10) unsigned NOT NULL auto_increment, - `name` varchar(80) NOT NULL, + `name` text NOT NULL, `description` varchar(250) default NULL, `id_group` int(6) NOT NULL default '1', `type` smallint(6) NOT NULL default '6',