From f1c0e3cb2fab9b602109d65f510cd4940bf79323 Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Tue, 2 Jun 2015 10:23:44 +0200 Subject: [PATCH] MySQL Schema: Add object_type to hostgroup --- schema/mysql-changes/upgrade_3.sql | 1 + schema/mysql.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 schema/mysql-changes/upgrade_3.sql 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)