schema: rename value_format to argument_format
This commit is contained in:
parent
8eb2bd7701
commit
611b94368b
|
@ -0,0 +1,6 @@
|
|||
ALTER TABLE icinga_command_argument DROP COLUMN value_format, ADD COLUMN argument_format ENUM('string', 'expression', 'json') NOT NULL DEFAULT 'string' AFTER argument_value;
|
||||
ALTER TABLE icinga_command_argument DEFAULT COLLATE utf8_bin;
|
||||
ALTER TABLE icinga_command_argument MODIFY COLUMN argument_name VARCHAR(64) DEFAULT NULL COLLATE utf8_bin;
|
||||
|
||||
|
||||
|
|
@ -263,14 +263,14 @@ 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',
|
||||
key_string VARCHAR(64) DEFAULT NULL COMMENT 'Overrides name',
|
||||
description TEXT DEFAULT NULL,
|
||||
skip_key ENUM('y', 'n') DEFAULT NULL,
|
||||
set_if VARCHAR(255) DEFAULT NULL, -- (string expression, must resolve to a numeric value)
|
||||
set_if_format ENUM('string', 'expression', 'json') DEFAULT NULL,
|
||||
sort_order SMALLINT DEFAULT NULL, -- -> order
|
||||
repeat_key ENUM('y', 'n') DEFAULT NULL COMMENT 'Useful with array values',
|
||||
value_format ENUM('string', 'expression', 'json') NOT NULL DEFAULT 'string',
|
||||
set_if_format ENUM('string', 'expression', 'json') DEFAULT NULL,
|
||||
PRIMARY KEY (id),
|
||||
UNIQUE INDEX sort_idx (command_id, sort_order),
|
||||
UNIQUE KEY unique_idx (command_id, argument_name),
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE icinga_command_argument DROP COLUMN value_format, ADD COLUMN argument_format enum_property_format NOT NULL DEFAULT 'string';
|
||||
|
|
@ -311,14 +311,14 @@ CREATE TABLE icinga_command_argument (
|
|||
command_id integer NOT NULL,
|
||||
argument_name character varying(64) DEFAULT NULL,
|
||||
argument_value text DEFAULT NULL,
|
||||
argument_format enum_property_format NOT NULL DEFAULT 'string',
|
||||
key_string character varying(64) DEFAULT NULL,
|
||||
description text DEFAULT NULL,
|
||||
skip_key enum_boolean DEFAULT NULL,
|
||||
set_if character varying(255) DEFAULT NULL, -- (string expression, must resolve to a numeric value)
|
||||
set_if_format enum_property_format DEFAULT NULL,
|
||||
sort_order smallint DEFAULT NULL, -- -> order
|
||||
repeat_key enum_boolean DEFAULT NULL,
|
||||
value_format enum_property_format NOT NULL DEFAULT 'string',
|
||||
set_if_format enum_property_format DEFAULT NULL,
|
||||
PRIMARY KEY (id),
|
||||
CONSTRAINT icinga_command_argument_command
|
||||
FOREIGN KEY (command_id)
|
||||
|
|
Loading…
Reference in New Issue