diff --git a/pandora_console/extras/mr/50.sql b/pandora_console/extras/mr/50.sql new file mode 100644 index 0000000000..f29798e56b --- /dev/null +++ b/pandora_console/extras/mr/50.sql @@ -0,0 +1,6 @@ +START TRANSACTION; + +ALTER TABLE `tevent_alert` ADD COLUMN `id_template_conditions` int(10) unsigned NOT NULL default 0; +ALTER TABLE `tevent_alert` ADD COLUMN `id_template_fields` int(10) unsigned NOT NULL default 0; + +COMMIT; \ No newline at end of file diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql index e506d2f688..b384ee1be2 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql @@ -710,6 +710,8 @@ CREATE TABLE IF NOT EXISTS `tevent_alert` ( ALTER TABLE `tevent_alert` ADD COLUMN `special_days` tinyint(1) default 0; ALTER TABLE `tevent_alert` MODIFY COLUMN `time_threshold` int(10) NOT NULL default 86400; ALTER TABLE `tevent_alert` ADD COLUMN `disable_event` tinyint(1) DEFAULT 0; +ALTER TABLE `tevent_alert` ADD COLUMN `id_template_conditions` int(10) unsigned NOT NULL default 0; +ALTER TABLE `tevent_alert` ADD COLUMN `id_template_fields` int(10) unsigned NOT NULL default 0; -- ----------------------------------------------------- -- Table `tevent_alert_action` diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 3b49b2b97e..3ba4421e98 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -3012,6 +3012,8 @@ CREATE TABLE IF NOT EXISTS `tevent_alert` ( `group_by` enum ('','id_agente','id_agentmodule','id_alert_am','id_grupo') default '', `special_days` tinyint(1) default 0, `disable_event` tinyint(1) default 0, + `id_template_conditions` int(10) unsigned NOT NULL default 0, + `id_template_fields` int(10) unsigned NOT NULL default 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;