diff --git a/schema/mysql-changes/upgrade_3.sql b/schema/mysql-changes/upgrade_3.sql new file mode 100644 index 00000000..1a093d6c --- /dev/null +++ b/schema/mysql-changes/upgrade_3.sql @@ -0,0 +1 @@ +ALTER TABLE icinga_hostgroup ADD COLUMN object_type ENUM('object', 'template') NOT NULL AFTER display_name; \ No newline at end of file diff --git a/schema/mysql.sql b/schema/mysql.sql index 06b486a1..92265a10 100644 --- a/schema/mysql.sql +++ b/schema/mysql.sql @@ -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)