schema/mysql: allow null values for use_agent

This commit is contained in:
Thomas Gelf 2015-12-18 15:59:46 +01:00
parent ff5ebdab53
commit 06ea68f0e9
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
ALTER TABLE icinga_service MODIFY COLUMN use_agent ENUM('y', 'n') DEFAULT NULL;

View File

@ -508,7 +508,7 @@ CREATE TABLE icinga_service (
icon_image VARCHAR(255) DEFAULT NULL,
icon_image_alt VARCHAR(255) DEFAULT NULL,
object_type ENUM('object', 'template', 'apply') NOT NULL,
use_agent ENUM('y', 'n') NOT NULL DEFAULT 'n',
use_agent ENUM('y', 'n') DEFAULT NULL,
PRIMARY KEY (id),
-- UNIQUE INDEX object_name (object_name, zone_id),
UNIQUE KEY object_key (object_name, host_id),