diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index cb3df83031..6e724f1aca 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,11 @@ +2011-04-14 Junichi Satoh <junichi@rworks.jp> + + * extras/pandoradb_migrate_v3.2_to_v4.0.sql, + pandoradb.sql, + pandoradb.postgreSQL.sql, + pandoradb.oracle.sql: Changed tperfil.name type to fix field length + shortage. + 2011-04-13 Miguel de Dios <miguel.dedios@artica.es> * include/functions_graph.php: deleted a repeat function. diff --git a/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql b/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql index fa596aa71f..b71b07383a 100644 --- a/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql +++ b/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql @@ -74,3 +74,8 @@ ALTER TABLE `talert_template_module_actions` ADD COLUMN `last_execution` bigint( -- Table `treport_content` -- ----------------------------------------------------- ALTER TABLE `treport_content` ADD COLUMN `style` TEXT NOT NULL DEFAULT ''; + +-- ----------------------------------------------------- +-- Table `tperfil` +-- ----------------------------------------------------- +ALTER TABLE `tperfil` MODIFY `name` TEXT NOT NULL DEFAULT ''; diff --git a/pandora_console/pandoradb.oracle.sql b/pandora_console/pandoradb.oracle.sql index 26fa290396..c06ad2e2e1 100644 --- a/pandora_console/pandoradb.oracle.sql +++ b/pandora_console/pandoradb.oracle.sql @@ -650,7 +650,7 @@ CREATE TABLE torigen ( CREATE TABLE tperfil ( id_perfil NUMBER(10, 0) NOT NULL PRIMARY KEY, - name VARCHAR2(60) default '' NOT NULL, + name CLOB default '' NOT NULL, incident_edit NUMBER(5, 0) default 0 NOT NULL, incident_view NUMBER(5, 0) default 0 NOT NULL, incident_management NUMBER(5, 0) default 0 NOT NULL, diff --git a/pandora_console/pandoradb.postgreSQL.sql b/pandora_console/pandoradb.postgreSQL.sql index 02bc32e2c4..2f5eaaa55f 100644 --- a/pandora_console/pandoradb.postgreSQL.sql +++ b/pandora_console/pandoradb.postgreSQL.sql @@ -521,7 +521,7 @@ CREATE TABLE "torigen" ( CREATE TABLE "tperfil" ( "id_perfil" SERIAL NOT NULL PRIMARY KEY, - "name" varchar(60) NOT NULL default '', + "name" TEXT NOT NULL default '', "incident_edit" SMALLINT NOT NULL default 0, "incident_view" SMALLINT NOT NULL default 0, "incident_management" SMALLINT NOT NULL default 0, diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 3aa66aa7cc..8168e95a73 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -574,7 +574,7 @@ CREATE TABLE IF NOT EXISTS `torigen` ( CREATE TABLE IF NOT EXISTS `tperfil` ( `id_perfil` int(10) unsigned NOT NULL auto_increment, - `name` varchar(60) NOT NULL default '', + `name` TEXT NOT NULL default '', `incident_edit` tinyint(3) NOT NULL default '0', `incident_view` tinyint(3) NOT NULL default '0', `incident_management` tinyint(3) NOT NULL default '0',