From a15c2c053994260c64a1e6024a9507db8518358b Mon Sep 17 00:00:00 2001 From: Laurent Pinsivy Date: Tue, 9 Jul 2019 08:44:39 +0100 Subject: [PATCH] fix(update): add missing SQL for PR #7679 --- www/install/sql/centreon/Update-DB-19.10.0.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www/install/sql/centreon/Update-DB-19.10.0.sql b/www/install/sql/centreon/Update-DB-19.10.0.sql index a76a99fa38f..04cdca97422 100644 --- a/www/install/sql/centreon/Update-DB-19.10.0.sql +++ b/www/install/sql/centreon/Update-DB-19.10.0.sql @@ -65,3 +65,9 @@ ALTER TABLE `modules_informations` DROP COLUMN `php_files`; -- Change IP field from varchar(16) to varchar(255) -- ALTER TABLE `remote_servers` MODIFY COLUMN `ip` VARCHAR(255) NOT NULL; + +-- Add trap regexp matching +ALTER TABLE `traps` ADD COLUMN IF NOT EXISTS `traps_mode` ENUM('0', '1') DEFAULT '0' AFTER `traps_oid`; + +-- Add trap filter +ALTER TABLE `traps` MODIFY COLUMN `traps_exec_interval_type` ENUM('0','1','2','3') NULL DEFAULT '0';