2011-08-04 Ramon Novoa <rnovoa@artica.es>
* pandoradb.sql, extras/pandoradb_migrate_v3.2_to_v4.0.sql: Added two indexes to the database schema to improve queries on talert_template_modules and tserver_export. Thanks to Manuel Arostegui. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4666 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
bbb4e4cabf
commit
6e4b1d6fe3
|
@ -1,3 +1,10 @@
|
|||
2011-08-04 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* pandoradb.sql,
|
||||
extras/pandoradb_migrate_v3.2_to_v4.0.sql: Added two indexes to the
|
||||
database schema to improve queries on talert_template_modules and
|
||||
tserver_export. Thanks to Manuel Arostegui.
|
||||
|
||||
2011-08-04 Javier Lanz <javier.lanz@artica.es>
|
||||
|
||||
* godmode/modules/manage_nc_groups.php: Fixed creating & updating
|
||||
|
|
|
@ -216,3 +216,14 @@ ALTER TABLE `talert_templates` MODIFY COLUMN `type` ENUM('regex','max_min','max'
|
|||
UPDATE tagente_modulo SET prediction_module = 2 WHERE custom_integer_1 <> 0 AND prediction_module <> 0;
|
||||
|
||||
UPDATE tagente_modulo SET custom_integer_1 = prediction_module AND prediction_module = 1 WHERE custom_integer_1 = 0 AND prediction_module <> 0;
|
||||
|
||||
-- -----------------------------------------------------
|
||||
-- Table `talert_template_modules`
|
||||
-- -----------------------------------------------------
|
||||
ALTER TABLE talert_template_modules ADD INDEX force_execution (`force_execution`);
|
||||
|
||||
-- -----------------------------------------------------
|
||||
-- Table `tserver_export_data`
|
||||
-- -----------------------------------------------------
|
||||
ALTER TABLE tserver_export ADD INDEX id_export_server (`id_export_server`);
|
||||
|
||||
|
|
|
@ -302,7 +302,8 @@ CREATE TABLE IF NOT EXISTS `talert_template_modules` (
|
|||
ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
FOREIGN KEY (`id_alert_template`) REFERENCES talert_templates(`id`)
|
||||
ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
UNIQUE (`id_agent_module`, `id_alert_template`)
|
||||
UNIQUE (`id_agent_module`, `id_alert_template`),
|
||||
INDEX force_execution (`force_execution`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `talert_template_module_actions` (
|
||||
|
@ -945,7 +946,8 @@ CREATE TABLE IF NOT EXISTS `tserver_export` (
|
|||
`directory` varchar(100) NOT NULL default '',
|
||||
`options` varchar(100) NOT NULL default '',
|
||||
`timezone_offset` TINYINT(2) NULL DEFAULT '0' COMMENT 'Number of hours of diference with the server timezone' ,
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`),
|
||||
INDEX id_export_server (`id_export_server`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- id_export_server is real pandora fms export server process that manages this server
|
||||
|
|
Loading…
Reference in New Issue