mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Added new indexes to mr and pandoradb
This commit is contained in:
parent
1babcb408d
commit
d1a3795acb
7
pandora_console/extras/mr/62.sql
Normal file
7
pandora_console/extras/mr/62.sql
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
-- Active: 1653046769261@@172.16.0.2@3306@pandora
|
||||||
|
START TRANSACTION;
|
||||||
|
|
||||||
|
CREATE INDEX agente_modulo_estado ON tevento (estado, id_agentmodule);
|
||||||
|
CREATE INDEX idx_disabled ON talert_template_modules (disabled);
|
||||||
|
|
||||||
|
COMMIT;
|
@ -557,7 +557,8 @@ CREATE TABLE IF NOT EXISTS `talert_template_modules` (
|
|||||||
FOREIGN KEY (`id_alert_template`) REFERENCES talert_templates(`id`)
|
FOREIGN KEY (`id_alert_template`) REFERENCES talert_templates(`id`)
|
||||||
ON DELETE CASCADE ON UPDATE CASCADE,
|
ON DELETE CASCADE ON UPDATE CASCADE,
|
||||||
UNIQUE (`id_agent_module`, `id_alert_template`, `id_policy_alerts`),
|
UNIQUE (`id_agent_module`, `id_alert_template`, `id_policy_alerts`),
|
||||||
INDEX force_execution (`force_execution`)
|
INDEX force_execution (`force_execution`),
|
||||||
|
INDEX idx_disabled (disabled)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
||||||
|
|
||||||
-- -----------------------------------------------------
|
-- -----------------------------------------------------
|
||||||
@ -719,7 +720,8 @@ CREATE TABLE IF NOT EXISTS `tevento` (
|
|||||||
PRIMARY KEY (`id_evento`),
|
PRIMARY KEY (`id_evento`),
|
||||||
KEY `idx_agente` (`id_agente`),
|
KEY `idx_agente` (`id_agente`),
|
||||||
KEY `idx_agentmodule` (`id_agentmodule`),
|
KEY `idx_agentmodule` (`id_agentmodule`),
|
||||||
KEY `idx_utimestamp` USING BTREE (`utimestamp`)
|
KEY `idx_utimestamp` USING BTREE (`utimestamp`),
|
||||||
|
INDEX `agente_modulo_estado`(`estado`, `id_agentmodule`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
||||||
-- Criticity: 0 - Maintance (grey)
|
-- Criticity: 0 - Maintance (grey)
|
||||||
-- Criticity: 1 - Informational (blue)
|
-- Criticity: 1 - Informational (blue)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user