From 1be124059e179bf0032f7ba5c400480946d2149a Mon Sep 17 00:00:00 2001
From: Calvo <luis.calvo@pandorafms.com>
Date: Tue, 14 Mar 2023 19:48:49 +0100
Subject: [PATCH] FIX MR

---
 pandora_console/extras/mr/62.sql | 2 +-
 pandora_console/pandoradb.sql    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pandora_console/extras/mr/62.sql b/pandora_console/extras/mr/62.sql
index aca5356db6..4c96004587 100644
--- a/pandora_console/extras/mr/62.sql
+++ b/pandora_console/extras/mr/62.sql
@@ -167,7 +167,7 @@ CREATE TABLE IF NOT EXISTS `tfavmenu_user` (
 PRIMARY KEY (`id`));
 
 ALTER TABLE `tnetflow_filter` ADD COLUMN `netflow_monitoring` TINYINT UNSIGNED NOT NULL default 0;
-ALTER TABLE `tnetflow_filter` ADD COLUMN `traffic_max` float(20,2) NOT NULL default 0;
+ALTER TABLE `tnetflow_filter` ADD COLUMN `traffic_max` INTEGER NOT NULL default 0;
 ALTER TABLE `tnetflow_filter` ADD COLUMN `traffic_critical` float(20,2) NOT NULL default 0;
 ALTER TABLE `tnetflow_filter` ADD COLUMN `traffic_warning` float(20,2) NOT NULL default 0;
 
diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql
index 2cdfc28f82..0a1e4e3984 100644
--- a/pandora_console/pandoradb.sql
+++ b/pandora_console/pandoradb.sql
@@ -2186,9 +2186,9 @@ CREATE TABLE IF NOT EXISTS `tnetflow_filter` (
   `filter_args` TEXT,
   `aggregate` VARCHAR(60),
   `netflow_monitoring` TINYINT UNSIGNED NOT NULL default 0,
-  `traffic_max` FLOAT(20,3) NOT NULL default 0,
+  `traffic_max` INTEGER NOT NULL default 0,
   `traffic_critical` FLOAT(20,2) NOT NULL default 0,
-  `traffic_warning` FLOAT(20,2) NOT NULL default 0,
+  `traffic_warning` FLOAT(20,2) NOT NULL default 0,git s
   PRIMARY KEY  (`id_sg`)
 ) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;