Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(update): move SQL for PR #7679
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinsivy committed Jul 8, 2019
1 parent 4eed556 commit 5a8f788
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions www/install/sql/centreon/Update-DB-19.04.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,3 @@ DELETE FROM `topology` WHERE (`topology_page` = '50703');
-- New configuration options for Centreon Engine
ALTER TABLE `cfg_nagios` ADD COLUMN `enable_macros_filter` ENUM('0', '1') DEFAULT '0';
ALTER TABLE `cfg_nagios` ADD COLUMN `macros_filter` TEXT DEFAULT '';

-- Add trap regexp matching
ALTER TABLE `traps` ADD `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';
6 changes: 6 additions & 0 deletions www/install/sql/centreon/Update-DB-19.04.3.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
-- 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';

0 comments on commit 5a8f788

Please sign in to comment.