MySQL Schema: Add object_type to hostgroup

This commit is contained in:
Alexander Fuhr 2015-06-02 10:23:44 +02:00
parent f630917281
commit f1c0e3cb2f
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -417,6 +417,7 @@ CREATE TABLE icinga_hostgroup (
id INT(10) UNSIGNED AUTO_INCREMENT NOT NULL,
object_name VARCHAR(255) NOT NULL,
display_name VARCHAR(255) DEFAULT NULL,
object_type ENUM('object', 'template') NOT NULL,
PRIMARY KEY (id),
UNIQUE INDEX object_name (object_name),
KEY search_idx (display_name)