2021-12-16 10:26:45 +01:00
|
|
|
START TRANSACTION;
|
|
|
|
ALTER TABLE `tpolicy_queue` MODIFY COLUMN `progress` int(10) NOT NULL default '0';
|
2022-01-10 11:24:32 +01:00
|
|
|
CREATE INDEX `IDX_tservice_element` ON `tservice_element`(`id_service`,`id_agente_modulo`);
|
2022-02-01 14:30:25 +01:00
|
|
|
ALTER TABLE tevent_response ADD COLUMN display_command tinyint(1) default 0;
|
2021-12-16 10:26:45 +01:00
|
|
|
|
2022-02-01 13:16:11 +01:00
|
|
|
ALTER TABLE `talert_templates` ADD COLUMN `schedule` TEXT;
|
|
|
|
ALTER TABLE `tevent_alert` ADD COLUMN `schedule` TEXT;
|
2022-01-31 13:45:44 +01:00
|
|
|
|
|
|
|
SOURCE procedures/alertTemplates.sql;
|
|
|
|
CALL `migrateRanges`();
|
|
|
|
DROP PROCEDURE `migrateRanges`;
|
|
|
|
|
2022-01-31 16:50:48 +01:00
|
|
|
SOURCE procedures/alertEvents.sql;
|
|
|
|
CALL `migrateEventRanges`();
|
|
|
|
DROP PROCEDURE `migrateEventRanges`;
|
|
|
|
|
2022-02-08 22:52:54 +01:00
|
|
|
CREATE TABLE IF NOT EXISTS `tpolicy_group_agents` (
|
|
|
|
`id` SERIAL,
|
|
|
|
`id_policy` INT UNSIGNED,
|
|
|
|
`id_agent` INT UNSIGNED,
|
|
|
|
`direct` TINYINT UNSIGNED DEFAULT 0,
|
|
|
|
FOREIGN KEY (`id_policy`) REFERENCES `tpolicies`(`id`)
|
|
|
|
ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`)
|
|
|
|
ON DELETE CASCADE ON UPDATE CASCADE
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
2021-12-16 10:26:45 +01:00
|
|
|
COMMIT;
|