diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index b3a64b16a7..ee0a867a73 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2011-09-22 Juan Manuel Ramon + + * pandoradb.sql + extras/pandoradb_migrate_v3.2_to_v4.0.sql: Added btree index on table + tagente_modulo. + 2011-09-22 Juan Manuel Ramon * operation/agentes/estado_monitores.php: Improved response time modifying 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 48240c3101..edd61a8f4c 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 @@ -182,6 +182,7 @@ ALTER TABLE `tagente_modulo` ADD COLUMN (`str_critical` text DEFAULT ''); ALTER TABLE `tagente_modulo` ADD COLUMN (`extended_info` text DEFAULT ''); ALTER TABLE `tagente_modulo` ADD INDEX module (`id_modulo`); ALTER TABLE `tagente_modulo` ADD INDEX nombre (`nombre` (255)); +CREATE INDEX `module_group` on tagente_modulo (`id_module_group`) using btree; -- ----------------------------------------------------- -- Table `tevento` diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 32c8aa1ddc..d781f199e4 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -193,7 +193,8 @@ CREATE TABLE IF NOT EXISTS `tagente_modulo` ( KEY `id_tipo_modulo` (`id_tipo_modulo`), KEY `disabled` (`disabled`), KEY `module` (`id_modulo`), - KEY `nombre` (`nombre` (255)) + KEY `nombre` (`nombre` (255)), + KEY `module_group` (`id_module_group`) using btree ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- snmp_oid is also used for WMI query