diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index cf90418dee..afd2c8fd95 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,12 @@ +2012-02-10 Vanessa Gil + * pandoradb.sql + pandoradb.postgreSQL.sql + pandoradb.oracle.sql + extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql + extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql + extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql: Changed type of 'value' + to tconfig table. + 2012-02-10 Dario Rodriguez * include/functions_modules.php: Changed module status image for unknown diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql index 4e13781cc2..7cccef1f69 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql @@ -148,3 +148,8 @@ CREATE TABLE IF NOT EXISTS `tevent_filter` ( `filter_only_alert` int(10) NOT NULL default -1, PRIMARY KEY (`id_filter`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- ----------------------------------------------------- +-- Table `tconfig` +-- ----------------------------------------------------- +ALTER TABLE tconfig MODIFY value TEXT NOT NULL; diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql index 6b2cc8f048..efa432ea1c 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql @@ -142,3 +142,8 @@ CREATE TABLE tevent_filter ( tag VARCHAR2(600) default '' NOT NULL, filter_only_alert NUMBER(10, 0) default -1 NOT NULL ); + +-- ----------------------------------------------------- +-- Table `tconfig` +-- ----------------------------------------------------- +ALTER TABLE tconfig MODIFY value TEXT NOT NULL; diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql index be37b7d066..9eed8e0f03 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql @@ -127,3 +127,8 @@ CREATE TABLE "tevent_filter" ( "tag" varchar(600) NOT NULL default '', "filter_only_alert" INTEGER NOT NULL default -1 ); + +-- ----------------------------------------------------- +-- Table `tconfig` +-- ----------------------------------------------------- +ALTER TABLE "tconfig" ALTER COLUMN "value" TEXT; diff --git a/pandora_console/pandoradb.oracle.sql b/pandora_console/pandoradb.oracle.sql index 075ce8e480..cff5cb67c2 100644 --- a/pandora_console/pandoradb.oracle.sql +++ b/pandora_console/pandoradb.oracle.sql @@ -480,7 +480,7 @@ CREATE OR REPLACE TRIGGER tattachment_inc BEFORE INSERT ON tattachment REFERENCI CREATE TABLE tconfig ( id_config NUMBER(10, 0) NOT NULL PRIMARY KEY, - token VARCHAR2(100) default '', + token VARCHAR2(255) default '', value VARCHAR2(100) default '' ); diff --git a/pandora_console/pandoradb.postgreSQL.sql b/pandora_console/pandoradb.postgreSQL.sql index 9a85414364..12d7fe7ba1 100644 --- a/pandora_console/pandoradb.postgreSQL.sql +++ b/pandora_console/pandoradb.postgreSQL.sql @@ -377,7 +377,7 @@ CREATE TABLE "tattachment" ( CREATE TABLE "tconfig" ( "id_config" SERIAL NOT NULL PRIMARY KEY, "token" varchar(100) NOT NULL default '', - "value" varchar(100) NOT NULL default '' + "value" text NOT NULL default '' ); CREATE TABLE "tconfig_os" ( diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 95c2d5ecfd..0aad0b1c86 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -418,7 +418,7 @@ CREATE TABLE IF NOT EXISTS `tattachment` ( CREATE TABLE IF NOT EXISTS `tconfig` ( `id_config` int(10) unsigned NOT NULL auto_increment, `token` varchar(100) NOT NULL default '', - `value` varchar(100) NOT NULL default '', + `value` text NOT NULL default '', PRIMARY KEY (`id_config`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;