diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 37354a5502..ae2d5c5020 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,16 @@ +2013-10-11 Vanessa Gil + + * pandoradb.data.oracle.sql + pandoradb.data.postgreSQL.sql + pandoradb_data.sql + pandoradb_migrate_4.0.x_to_5.0.mysql.sql + pandoradb_migrate_4.0.x_to_5.0.oracle.sql + pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql + pandoradb_migrate_4.1_to_5.0.mysql.sql + pandoradb_migrate_4.1_to_5.0.oracle.sql + pandoradb_migrate_4.1_to_5.0.postgreSQL.sql: Removed some + languages from setup. + 2013-10-11 Miguel de Dios * godmode/reporting/visual_console_builder.editor.php, 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 75f79864e9..a39b06d38d 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 @@ -362,6 +362,7 @@ ALTER TABLE tnetwork_map ADD `show_modulegroup` TINYINT(1) UNSIGNED NOT NULL DEF -- Table `tagente_estado` -- ---------------------------------------------------------------------- ALTER TABLE `tagente_estado` ADD COLUMN `last_known_status` tinyint(4) NOT NULL DEFAULT 0; +ALTER TABLE `tagente_estado` ADD COLUMN `last_error` int(4) NOT NULL DEFAULT '0'; -- --------------------------------------------------------------------- -- Table `tevent_response` @@ -1141,3 +1142,10 @@ 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; + +-- --------------------------------------------------------------------- +-- Table tlanguage (11/11/2013) +-- --------------------------------------------------------------------- + +DELETE FROM `tlanguage` WHERE id_language IN ('ast', 'eu', 'bn', 'bg', 'ca', 'da', 'et', 'fi', 'gl', 'he', 'hi', 'hu', 'ko', 'ms', 'mr', 'nb', 'ro', 'sl', 'sv', 'te', 'uk', 'vi'); + 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 309fc78ddc..6eb89bcf67 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 @@ -395,6 +395,7 @@ ALTER TABLE tnetwork_map ADD (show_modulegroup NUMBER(10, 0) default 0 NOT NULL) -- Table tagente_estado ------------------------------------------------------------------------ ALTER TABLE tagente_estado ADD (last_known_status NUMBER(10, 0) default 0 NOT NULL); +ALTER TABLE tagente_estado ADD (last_error NUMBER(10, 0) default 0 NOT NULL); -- ----------------------------------------------------- -- Table tevent_response @@ -484,6 +485,17 @@ ALTER TABLE tusuario_perfil ADD (tags CLOB NOT NULL default ''); ALTER TABLE ttag ADD (email CLOB NULL); ALTER TABLE ttag ADD (phone CLOB NULL); +-- --------------------------------------------------------------------- +-- Add more fields in snmp alerts (05/03/13) +-- --------------------------------------------------------------------- +ALTER TABLE talert_snmp ADD COLUMN (al_field5 CLOB NOT NULL default ''); +ALTER TABLE talert_snmp ADD COLUMN (al_field5 CLOB NOT NULL default ''); +ALTER TABLE talert_snmp ADD COLUMN (al_field6 CLOB NOT NULL default ''); +ALTER TABLE talert_snmp ADD COLUMN (al_field7 CLOB NOT NULL default ''); +ALTER TABLE talert_snmp ADD COLUMN (al_field8 CLOB NOT NULL default ''); +ALTER TABLE talert_snmp ADD COLUMN (al_field9 CLOB NOT NULL default ''); +ALTER TABLE talert_snmp ADD COLUMN (al_field10 CLOB NOT NULL default ''); + -- --------------------------------------------------------------------- -- Add metaconsole fields to user table (17/04/13) -- --------------------------------------------------------------------- @@ -1148,3 +1160,9 @@ 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); + +-- --------------------------------------------------------------------- +-- Table tlanguage (11/11/2013) +-- --------------------------------------------------------------------- + +DELETE FROM tlanguage WHERE id_language IN ('ast', 'eu', 'bn', 'bg', 'ca', 'da', 'et', 'fi', 'gl', 'he', 'hi', 'hu', 'ko', 'ms', 'mr', 'nb', 'ro', 'sl', 'sv', 'te', 'uk', 'vi'); 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 ce70abeceb..a51f2f740e 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 @@ -382,6 +382,7 @@ ALTER TABLE "tnetwork_map" ADD COLUMN "show_modulegroup" INTEGER NOT NULL defaul -- Table "tagente_estado" ------------------------------------------------------------------------ ALTER TABLE "tagente_estado" ADD COLUMN "last_known_status" INTEGER default 0; +ALTER TABLE "tagente_estado" ADD COLUMN "last_error" INTEGER default 0; -- ----------------------------------------------------- -- Table "tevent_response" @@ -1132,3 +1133,9 @@ 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; + +-- --------------------------------------------------------------------- +-- Table tlanguage (11/11/2013) +-- --------------------------------------------------------------------- + +DELETE FROM "tlanguage" WHERE "id_language" IN ('ast', 'eu', 'bn', 'bg', 'ca', 'da', 'et', 'fi', 'gl', 'he', 'hi', 'hu', 'ko', 'ms', 'mr', 'nb', 'ro', 'sl', 'sv', 'te', 'uk', 'vi'); diff --git a/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.mysql.sql index 9655558867..24a094ab8e 100644 --- a/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.mysql.sql @@ -360,6 +360,7 @@ ALTER TABLE tnetwork_map ADD `show_modulegroup` TINYINT(1) UNSIGNED NOT NULL DEF -- Table `tagente_estado` -- ---------------------------------------------------------------------- ALTER TABLE `tagente_estado` ADD COLUMN `last_known_status` tinyint(4) NOT NULL DEFAULT 0; +ALTER TABLE `tagente_estado` ADD COLUMN `last_error` int(4) NOT NULL DEFAULT '0'; -- --------------------------------------------------------------------- -- Table `tevent_response` @@ -450,6 +451,17 @@ ALTER TABLE `tusuario_perfil` ADD COLUMN `tags` TEXT NOT NULL; ALTER TABLE `ttag` ADD COLUMN `email` text NULL; ALTER TABLE `ttag` ADD COLUMN `phone` text NULL; +-- --------------------------------------------------------------------- +-- Add more fields in snmp alerts (05/03/13) +-- --------------------------------------------------------------------- +ALTER TABLE `talert_snmp` ADD COLUMN `al_field4` text; +ALTER TABLE `talert_snmp` ADD COLUMN `al_field5` text; +ALTER TABLE `talert_snmp` ADD COLUMN `al_field6` text; +ALTER TABLE `talert_snmp` ADD COLUMN `al_field7` text; +ALTER TABLE `talert_snmp` ADD COLUMN `al_field8` text; +ALTER TABLE `talert_snmp` ADD COLUMN `al_field9` text; +ALTER TABLE `talert_snmp` ADD COLUMN `al_field10` text; + -- --------------------------------------------------------------------- -- Add metaconsole fields to user table (17/04/13) -- --------------------------------------------------------------------- @@ -1139,3 +1151,9 @@ 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; + +-- --------------------------------------------------------------------- +-- Table tlanguage (11/11/2013) +-- --------------------------------------------------------------------- + +DELETE FROM `tlanguage` WHERE id_language IN ('ast', 'eu', 'bn', 'bg', 'ca', 'da', 'et', 'fi', 'gl', 'he', 'hi', 'hu', 'ko', 'ms', 'mr', 'nb', 'ro', 'sl', 'sv', 'te', 'uk', 'vi'); diff --git a/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.oracle.sql b/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.oracle.sql index a586e8f0cb..331536bd46 100644 --- a/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.oracle.sql +++ b/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.oracle.sql @@ -393,6 +393,7 @@ ALTER TABLE tnetwork_map ADD (show_modulegroup NUMBER(10, 0) default 0 NOT NULL) -- Table tagente_estado ------------------------------------------------------------------------ ALTER TABLE tagente_estado ADD (last_known_status NUMBER(10, 0) default 0 NOT NULL); +ALTER TABLE tagente_estado ADD (last_error NUMBER(10, 0) default 0 NOT NULL); -- ----------------------------------------------------- -- Table tevent_response @@ -482,6 +483,17 @@ ALTER TABLE tusuario_perfil ADD (tags CLOB NOT NULL default ''); ALTER TABLE ttag ADD (email CLOB NULL); ALTER TABLE ttag ADD (phone CLOB NULL); +-- --------------------------------------------------------------------- +-- Add more fields in snmp alerts (05/03/13) +-- --------------------------------------------------------------------- +ALTER TABLE talert_snmp ADD COLUMN (al_field5 CLOB NOT NULL default ''); +ALTER TABLE talert_snmp ADD COLUMN (al_field5 CLOB NOT NULL default ''); +ALTER TABLE talert_snmp ADD COLUMN (al_field6 CLOB NOT NULL default ''); +ALTER TABLE talert_snmp ADD COLUMN (al_field7 CLOB NOT NULL default ''); +ALTER TABLE talert_snmp ADD COLUMN (al_field8 CLOB NOT NULL default ''); +ALTER TABLE talert_snmp ADD COLUMN (al_field9 CLOB NOT NULL default ''); +ALTER TABLE talert_snmp ADD COLUMN (al_field10 CLOB NOT NULL default ''); + -- --------------------------------------------------------------------- -- Add metaconsole fields to user table (17/04/13) -- --------------------------------------------------------------------- @@ -1146,3 +1158,9 @@ 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); + +-- --------------------------------------------------------------------- +-- Table tlanguage (11/11/2013) +-- --------------------------------------------------------------------- + +DELETE FROM tlanguage WHERE id_language IN ('ast', 'eu', 'bn', 'bg', 'ca', 'da', 'et', 'fi', 'gl', 'he', 'hi', 'hu', 'ko', 'ms', 'mr', 'nb', 'ro', 'sl', 'sv', 'te', 'uk', 'vi'); diff --git a/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.postgreSQL.sql b/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.postgreSQL.sql index 1d8486778e..7c0b87cbcb 100644 --- a/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.postgreSQL.sql +++ b/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.postgreSQL.sql @@ -380,6 +380,7 @@ ALTER TABLE "tnetwork_map" ADD COLUMN "show_modulegroup" INTEGER NOT NULL defaul -- Table "tagente_estado" ------------------------------------------------------------------------ ALTER TABLE "tagente_estado" ADD COLUMN "last_known_status" INTEGER default 0; +ALTER TABLE "tagente_estado" ADD COLUMN "last_error" INTEGER default 0; -- ----------------------------------------------------- -- Table "tevent_response" @@ -468,6 +469,17 @@ ALTER TABLE "tusuario_perfil" ADD COLUMN "tags" text default ''; ALTER TABLE "ttag" ADD COLUMN "email" TEXT NULL; ALTER TABLE "ttag" ADD COLUMN "phone" TEXT NULL; +-- --------------------------------------------------------------------- +-- Add more fields in snmp alerts (05/03/13) +-- --------------------------------------------------------------------- +ALTER TABLE "talert_snmp" ADD COLUMN "al_field4" TEXT; +ALTER TABLE "talert_snmp" ADD COLUMN "al_field5" TEXT; +ALTER TABLE "talert_snmp" ADD COLUMN "al_field6" TEXT; +ALTER TABLE "talert_snmp" ADD COLUMN "al_field7" TEXT; +ALTER TABLE "talert_snmp" ADD COLUMN "al_field8" TEXT; +ALTER TABLE "talert_snmp" ADD COLUMN "al_field9" TEXT; +ALTER TABLE "talert_snmp" ADD COLUMN "al_field10" TEXT; + -- --------------------------------------------------------------------- -- Add metaconsole fields to user table (17/04/13) -- --------------------------------------------------------------------- @@ -1130,3 +1142,9 @@ 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; + +-- --------------------------------------------------------------------- +-- Table tlanguage (11/11/2013) +-- --------------------------------------------------------------------- + +DELETE FROM "tlanguage" WHERE "id_language" IN ('ast', 'eu', 'bn', 'bg', 'ca', 'da', 'et', 'fi', 'gl', 'he', 'hi', 'hu', 'ko', 'ms', 'mr', 'nb', 'ro', 'sl', 'sv', 'te', 'uk', 'vi'); diff --git a/pandora_console/pandoradb.data.oracle.sql b/pandora_console/pandoradb.data.oracle.sql index 08790c5fe0..e7611329a6 100644 --- a/pandora_console/pandoradb.data.oracle.sql +++ b/pandora_console/pandoradb.data.oracle.sql @@ -177,35 +177,19 @@ LOCK TABLE tlanguage IN EXCLUSIVE MODE; INSERT INTO tlanguage VALUES ('en_GB','English'); INSERT INTO tlanguage VALUES ('es','Español'); INSERT INTO tlanguage VALUES ('ar','العربية'); -INSERT INTO tlanguage VALUES ('ast','Asturianu'); -INSERT INTO tlanguage VALUES ('bn', 'বাংলা'); -INSERT INTO tlanguage VALUES ('ca','Catalá'); INSERT INTO tlanguage VALUES ('cs','Česky'); -INSERT INTO tlanguage VALUES ('da','Dansk'); INSERT INTO tlanguage VALUES ('de','Deutch'); -INSERT INTO tlanguage VALUES ('eu','Euskara'); INSERT INTO tlanguage VALUES ('el','Ελληνικά'); -INSERT INTO tlanguage VALUES ('fi','Suomi'); INSERT INTO tlanguage VALUES ('fr','Français'); -INSERT INTO tlanguage VALUES ('gl','Galego'); -INSERT INTO tlanguage VALUES ('he','עברית'); -INSERT INTO tlanguage VALUES ('hi','हिन्दी'); -INSERT INTO tlanguage VALUES ('hu','Magyar'); INSERT INTO tlanguage VALUES ('it','Italiano'); INSERT INTO tlanguage VALUES ('ja','日本語'); -INSERT INTO tlanguage VALUES ('ko','한국어'); INSERT INTO tlanguage VALUES ('nl','Nederlands'); INSERT INTO tlanguage VALUES ('pl','Polski'); INSERT INTO tlanguage VALUES ('pt_BR','Português-Brasil'); INSERT INTO tlanguage VALUES ('pt','Português'); -INSERT INTO tlanguage VALUES ('ro','Română'); INSERT INTO tlanguage VALUES ('ru','Русский'); INSERT INTO tlanguage VALUES ('sk','Slovenčina'); -INSERT INTO tlanguage VALUES ('sl','Slovenščina'); -INSERT INTO tlanguage VALUES ('sv','Svenska'); -INSERT INTO tlanguage VALUES ('te','తెలుగు'); INSERT INTO tlanguage VALUES ('tr','Türkçe'); -INSERT INTO tlanguage VALUES ('uk','Українська'); INSERT INTO tlanguage VALUES ('zh_CN','简化字'); INSERT INTO tlanguage VALUES ('zh_TW','簡化字'); COMMIT; diff --git a/pandora_console/pandoradb.data.postgreSQL.sql b/pandora_console/pandoradb.data.postgreSQL.sql index 94811ea9d5..61229e7bbc 100644 --- a/pandora_console/pandoradb.data.postgreSQL.sql +++ b/pandora_console/pandoradb.data.postgreSQL.sql @@ -161,35 +161,19 @@ LOCK TABLE "tlanguage"; INSERT INTO "tlanguage" VALUES ('en_GB','English'); INSERT INTO "tlanguage" VALUES ('es','Español'); INSERT INTO "tlanguage" VALUES ('ar','العربية'); -INSERT INTO "tlanguage" VALUES ('ast','Asturianu'); -INSERT INTO "tlanguage" VALUES ('bn', 'বাংলা'); -INSERT INTO "tlanguage" VALUES ('ca','Catalá'); INSERT INTO "tlanguage" VALUES ('cs','Česky'); -INSERT INTO "tlanguage" VALUES ('da','Dansk'); INSERT INTO "tlanguage" VALUES ('de','Deutch'); -INSERT INTO "tlanguage" VALUES ('eu','Euskara'); INSERT INTO "tlanguage" VALUES ('el','Ελληνικά'); -INSERT INTO "tlanguage" VALUES ('fi','Suomi'); INSERT INTO "tlanguage" VALUES ('fr','Français'); -INSERT INTO "tlanguage" VALUES ('gl','Galego'); -INSERT INTO "tlanguage" VALUES ('he','עברית'); -INSERT INTO "tlanguage" VALUES ('hi','हिन्दी'); -INSERT INTO "tlanguage" VALUES ('hu','Magyar'); INSERT INTO "tlanguage" VALUES ('it','Italiano'); INSERT INTO "tlanguage" VALUES ('ja','日本語'); -INSERT INTO "tlanguage" VALUES ('ko','한국어'); INSERT INTO "tlanguage" VALUES ('nl','Nederlands'); INSERT INTO "tlanguage" VALUES ('pl','Polski'); INSERT INTO "tlanguage" VALUES ('pt_BR','Português-Brasil'); INSERT INTO "tlanguage" VALUES ('pt','Português'); -INSERT INTO "tlanguage" VALUES ('ro','Română'); INSERT INTO "tlanguage" VALUES ('ru','Русский'); INSERT INTO "tlanguage" VALUES ('sk','Slovenčina'); -INSERT INTO "tlanguage" VALUES ('sl','Slovenščina'); -INSERT INTO "tlanguage" VALUES ('sv','Svenska'); -INSERT INTO "tlanguage" VALUES ('te','తెలుగు'); INSERT INTO "tlanguage" VALUES ('tr','Türkçe'); -INSERT INTO "tlanguage" VALUES ('uk','Українська'); INSERT INTO "tlanguage" VALUES ('zh_CN','简化字'); INSERT INTO "tlanguage" VALUES ('zh_TW','簡化字'); COMMIT WORK; diff --git a/pandora_console/pandoradb_data.sql b/pandora_console/pandoradb_data.sql index a7b7e492dc..14563e7017 100644 --- a/pandora_console/pandoradb_data.sql +++ b/pandora_console/pandoradb_data.sql @@ -149,35 +149,19 @@ LOCK TABLES `tlanguage` WRITE; INSERT INTO `tlanguage` VALUES ('en_GB','English'); INSERT INTO `tlanguage` VALUES ('es','Español'); INSERT INTO `tlanguage` VALUES ('ar','العربية'); -INSERT INTO `tlanguage` VALUES ('ast','Asturianu'); -INSERT INTO `tlanguage` VALUES ('bn', 'বাংলা'); -INSERT INTO `tlanguage` VALUES ('ca','Catalá'); INSERT INTO `tlanguage` VALUES ('cs','Česky'); -INSERT INTO `tlanguage` VALUES ('da','Dansk'); INSERT INTO `tlanguage` VALUES ('de','Deutch'); -INSERT INTO `tlanguage` VALUES ('eu','Euskara'); INSERT INTO `tlanguage` VALUES ('el','Ελληνικά'); -INSERT INTO `tlanguage` VALUES ('fi','Suomi'); INSERT INTO `tlanguage` VALUES ('fr','Français'); -INSERT INTO `tlanguage` VALUES ('gl','Galego'); -INSERT INTO `tlanguage` VALUES ('he','עברית'); -INSERT INTO `tlanguage` VALUES ('hi','हिन्दी'); -INSERT INTO `tlanguage` VALUES ('hu','Magyar'); INSERT INTO `tlanguage` VALUES ('it','Italiano'); INSERT INTO `tlanguage` VALUES ('ja','日本語'); -INSERT INTO `tlanguage` VALUES ('ko','한국어'); INSERT INTO `tlanguage` VALUES ('nl','Nederlands'); INSERT INTO `tlanguage` VALUES ('pl','Polski'); INSERT INTO `tlanguage` VALUES ('pt_BR','Português-Brasil'); INSERT INTO `tlanguage` VALUES ('pt','Português'); -INSERT INTO `tlanguage` VALUES ('ro','Română'); INSERT INTO `tlanguage` VALUES ('ru','Русский'); INSERT INTO `tlanguage` VALUES ('sk','Slovenčina'); -INSERT INTO `tlanguage` VALUES ('sl','Slovenščina'); -INSERT INTO `tlanguage` VALUES ('sv','Svenska'); -INSERT INTO `tlanguage` VALUES ('te','తెలుగు'); INSERT INTO `tlanguage` VALUES ('tr','Türkçe'); -INSERT INTO `tlanguage` VALUES ('uk','Українська'); INSERT INTO `tlanguage` VALUES ('zh_CN','简化字'); INSERT INTO `tlanguage` VALUES ('zh_TW','簡化字');