Merge branch 'ent-4444-Rendimiento-en-la-vista-de-eventos-en-metaconsola' into 'develop'
Added index in MR See merge request artica/pandorafms!2916
This commit is contained in:
commit
e96d7f1f30
|
@ -50,4 +50,7 @@ INSERT INTO `tconfig`(`token`, `value`) VALUES ('welcome_state', -1);
|
||||||
|
|
||||||
ALTER TABLE `tcredential_store` MODIFY COLUMN `product` enum('CUSTOM', 'AWS', 'AZURE', 'GOOGLE', 'SAP') default 'CUSTOM';
|
ALTER TABLE `tcredential_store` MODIFY COLUMN `product` enum('CUSTOM', 'AWS', 'AZURE', 'GOOGLE', 'SAP') default 'CUSTOM';
|
||||||
|
|
||||||
|
ALTER TABLE `tmetaconsole_agent_secondary_group` ADD INDEX `id_tagente` (`id_tagente`);
|
||||||
|
ALTER TABLE `tmetaconsole_event` ADD INDEX `server_id` (`server_id`);
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
|
@ -931,6 +931,7 @@ CREATE TABLE IF NOT EXISTS `tmetaconsole_event` (
|
||||||
|
|
||||||
ALTER TABLE `tmetaconsole_event` ADD COLUMN `data` double(22,5) default NULL;
|
ALTER TABLE `tmetaconsole_event` ADD COLUMN `data` double(22,5) default NULL;
|
||||||
ALTER TABLE `tmetaconsole_event` ADD COLUMN `module_status` int(4) NOT NULL default '0';
|
ALTER TABLE `tmetaconsole_event` ADD COLUMN `module_status` int(4) NOT NULL default '0';
|
||||||
|
ALTER TABLE `tmetaconsole_event` ADD INDEX `server_id` (`server_id`);
|
||||||
|
|
||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
-- Table `tmetaconsole_event_history`
|
-- Table `tmetaconsole_event_history`
|
||||||
|
@ -1906,6 +1907,7 @@ create table IF NOT EXISTS `tmetaconsole_agent_secondary_group`(
|
||||||
ALTER TABLE tagente ADD COLUMN `update_secondary_groups` tinyint(1) NOT NULL default '0';
|
ALTER TABLE tagente ADD COLUMN `update_secondary_groups` tinyint(1) NOT NULL default '0';
|
||||||
ALTER TABLE tmetaconsole_agent ADD COLUMN `update_secondary_groups` tinyint(1) NOT NULL default '0';
|
ALTER TABLE tmetaconsole_agent ADD COLUMN `update_secondary_groups` tinyint(1) NOT NULL default '0';
|
||||||
ALTER TABLE tusuario_perfil ADD COLUMN `no_hierarchy` tinyint(1) NOT NULL default '0';
|
ALTER TABLE tusuario_perfil ADD COLUMN `no_hierarchy` tinyint(1) NOT NULL default '0';
|
||||||
|
ALTER TABLE `tmetaconsole_agent_secondary_group` ADD INDEX `id_tagente` (`id_tagente`);
|
||||||
|
|
||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
-- Table `tautoconfig`
|
-- Table `tautoconfig`
|
||||||
|
|
|
@ -3109,6 +3109,7 @@ CREATE TABLE IF NOT EXISTS `tmetaconsole_event` (
|
||||||
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 `server_id` (`server_id`),
|
||||||
KEY `idx_utimestamp` USING BTREE (`utimestamp`)
|
KEY `idx_utimestamp` USING BTREE (`utimestamp`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
-- Criticity: 0 - Maintance (grey)
|
-- Criticity: 0 - Maintance (grey)
|
||||||
|
@ -3421,6 +3422,7 @@ create table IF NOT EXISTS `tmetaconsole_agent_secondary_group`(
|
||||||
`id_tmetaconsole_setup` int(10) NOT NULL,
|
`id_tmetaconsole_setup` int(10) NOT NULL,
|
||||||
`id_group` mediumint(4) unsigned NOT NULL,
|
`id_group` mediumint(4) unsigned NOT NULL,
|
||||||
PRIMARY KEY(`id`),
|
PRIMARY KEY(`id`),
|
||||||
|
KEY `id_tagente` (`id_tagente`),
|
||||||
FOREIGN KEY(`id_agent`) REFERENCES tmetaconsole_agent(`id_agente`)
|
FOREIGN KEY(`id_agent`) REFERENCES tmetaconsole_agent(`id_agente`)
|
||||||
ON DELETE CASCADE,
|
ON DELETE CASCADE,
|
||||||
FOREIGN KEY(`id_group`) REFERENCES tgrupo(`id_grupo`)
|
FOREIGN KEY(`id_group`) REFERENCES tgrupo(`id_grupo`)
|
||||||
|
|
Loading…
Reference in New Issue