MySQL Schema: Add object_type to servicegroup

This commit is contained in:
Alexander Fuhr 2015-06-02 11:44:13 +02:00
parent 0459ec95f9
commit b0e666ab61
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -427,6 +427,7 @@ CREATE TABLE icinga_servicegroup (
id INT(10) UNSIGNED AUTO_INCREMENT NOT NULL,
object_name VARCHAR(255) DEFAULT 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)