From b0e666ab61960b1f18381023b82472add7c4b91c Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Tue, 2 Jun 2015 11:44:13 +0200 Subject: [PATCH] MySQL Schema: Add object_type to servicegroup --- schema/mysql-changes/upgrade_4.sql | 1 + schema/mysql.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 schema/mysql-changes/upgrade_4.sql diff --git a/schema/mysql-changes/upgrade_4.sql b/schema/mysql-changes/upgrade_4.sql new file mode 100644 index 00000000..4f005f24 --- /dev/null +++ b/schema/mysql-changes/upgrade_4.sql @@ -0,0 +1 @@ +ALTER TABLE icinga_servicegroup 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 92265a10..3f149bd7 100644 --- a/schema/mysql.sql +++ b/schema/mysql.sql @@ -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)