pandorafms/pandora_console/extras/mr/52.sql

16 lines
540 B
MySQL
Raw Normal View History

2021-12-16 10:26:45 +01:00
START TRANSACTION;
ALTER TABLE `tpolicy_queue` MODIFY COLUMN `progress` int(10) NOT NULL default '0';
CREATE INDEX `IDX_tservice_element` ON `tservice_element`(`id_service`,`id_agente_modulo`);
2021-12-16 10:26:45 +01:00
ALTER TABLE `talert_templates` ADD COLUMN `schedule` TEXT DEFAULT NULL;
ALTER TABLE `tevent_alert` ADD COLUMN `schedule` TEXT DEFAULT NULL;
SOURCE procedures/alertTemplates.sql;
CALL `migrateRanges`();
DROP PROCEDURE `migrateRanges`;
SOURCE procedures/alertEvents.sql;
CALL `migrateEventRanges`();
DROP PROCEDURE `migrateEventRanges`;
2021-12-16 10:26:45 +01:00
COMMIT;