schema/mysql: allow argument format to be null

This commit is contained in:
Thomas Gelf 2015-12-01 10:39:41 +01:00
parent 4875c2813d
commit 80d68adcda
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
ALTER TABLE icinga_command_argument MODIFY argument_format ENUM('string','expression','json') NULL DEFAULT NULL;

View File

@ -270,7 +270,7 @@ CREATE TABLE icinga_command_argument (
command_id INT(10) UNSIGNED NOT NULL,
argument_name VARCHAR(64) DEFAULT NULL COMMENT '-x, --host',
argument_value TEXT DEFAULT NULL,
argument_format ENUM('string', 'expression', 'json') NOT NULL DEFAULT 'string',
argument_format ENUM('string', 'expression', 'json') NULL DEFAULT NULL,
key_string VARCHAR(64) DEFAULT NULL COMMENT 'Overrides name',
description TEXT DEFAULT NULL,
skip_key ENUM('y', 'n') DEFAULT NULL,