From 386eeec7ef8321814fc9f0d089d863f31190cd3f Mon Sep 17 00:00:00 2001
From: fermin831 <fermin.hernandez@artica.es>
Date: Tue, 11 Dec 2018 16:07:13 +0100
Subject: [PATCH] Added group_recursion as tevent_rule column

Former-commit-id: fe86489eec11dd38627b8a72b9855e6675507281
---
 pandora_console/extras/mr/23.sql                              | 2 ++
 pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql | 1 +
 pandora_console/pandoradb.sql                                 | 1 +
 3 files changed, 4 insertions(+)

diff --git a/pandora_console/extras/mr/23.sql b/pandora_console/extras/mr/23.sql
index a602023e3b..98ef4f5747 100644
--- a/pandora_console/extras/mr/23.sql
+++ b/pandora_console/extras/mr/23.sql
@@ -6,4 +6,6 @@ ALTER TABLE `tagent_custom_fields_filter` ADD COLUMN `module_status` varchar(600
 
 ALTER TABLE `tagent_custom_fields_filter` ADD COLUMN `recursion` int(1) unsigned default '0';
 
+ALTER TABLE `tevent_rule` ADD COLUMN `group_recursion` INT(1) unsigned 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 5b98fdbec0..c4bce4898b 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
@@ -544,6 +544,7 @@ CREATE TABLE IF NOT EXISTS `tevent_rule` (
 	`user_comment` text NOT NULL,
 	`id_tag` integer(10) unsigned NOT NULL default '0',
 	`name` text default '',
+	`group_recursion` INT(1) unsigned default 0,
 	PRIMARY KEY  (`id_event_rule`),
 	KEY `idx_id_event_alert` (`id_event_alert`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql
index 054204d85a..9270bc1acf 100644
--- a/pandora_console/pandoradb.sql
+++ b/pandora_console/pandoradb.sql
@@ -2621,6 +2621,7 @@ CREATE TABLE IF NOT EXISTS `tevent_rule` (
 	`user_comment` text NOT NULL,
 	`id_tag` integer(10) unsigned NOT NULL default '0',
 	`name` text default '',
+	`group_recursion` INT(1) unsigned default 0,
 	PRIMARY KEY  (`id_event_rule`),
 	KEY `idx_id_event_alert` (`id_event_alert`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;