MySQL Schema: Add object_type to usergroup

This commit is contained in:
Alexander Fuhr 2015-06-02 14:15:19 +02:00
parent 8d25b84f20
commit f5af3a7123
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
ALTER TABLE icinga_usergroup ADD COLUMN object_type ENUM('object', 'template') NOT NULL AFTER zone_id;

View File

@ -315,7 +315,7 @@ CREATE TABLE icinga_host_var (
host_id INT(10) UNSIGNED NOT NULL, host_id INT(10) UNSIGNED NOT NULL,
varname VARCHAR(255) DEFAULT NULL, varname VARCHAR(255) DEFAULT NULL,
varvalue TEXT DEFAULT NULL, varvalue TEXT DEFAULT NULL,
format enum ('string', 'json', 'expression'), format enum ('string', 'json', 'expression'), -- immer string vorerst
PRIMARY KEY (host_id, varname), PRIMARY KEY (host_id, varname),
key search_idx (varname), key search_idx (varname),
CONSTRAINT icinga_host_var_host CONSTRAINT icinga_host_var_host