MySQL Schema: Add object_type to hostgroup
This commit is contained in:
parent
f630917281
commit
f1c0e3cb2f
|
@ -0,0 +1 @@
|
||||||
|
ALTER TABLE icinga_hostgroup ADD COLUMN object_type ENUM('object', 'template') NOT NULL AFTER display_name;
|
|
@ -417,6 +417,7 @@ CREATE TABLE icinga_hostgroup (
|
||||||
id INT(10) UNSIGNED AUTO_INCREMENT NOT NULL,
|
id INT(10) UNSIGNED AUTO_INCREMENT NOT NULL,
|
||||||
object_name VARCHAR(255) NOT NULL,
|
object_name VARCHAR(255) NOT NULL,
|
||||||
display_name VARCHAR(255) DEFAULT NULL,
|
display_name VARCHAR(255) DEFAULT NULL,
|
||||||
|
object_type ENUM('object', 'template') NOT NULL,
|
||||||
PRIMARY KEY (id),
|
PRIMARY KEY (id),
|
||||||
UNIQUE INDEX object_name (object_name),
|
UNIQUE INDEX object_name (object_name),
|
||||||
KEY search_idx (display_name)
|
KEY search_idx (display_name)
|
||||||
|
|
Loading…
Reference in New Issue