From 706ae2e27911d541ec848c3490dfdf342a4158f1 Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Mon, 1 Jun 2015 16:33:35 +0200 Subject: [PATCH] Add object_type property to user --- schema/mysql-changes/upgrade_1.sql | 2 ++ schema/mysql.sql | 1 + 2 files changed, 3 insertions(+) create mode 100644 schema/mysql-changes/upgrade_1.sql diff --git a/schema/mysql-changes/upgrade_1.sql b/schema/mysql-changes/upgrade_1.sql new file mode 100644 index 00000000..e9b1008f --- /dev/null +++ b/schema/mysql-changes/upgrade_1.sql @@ -0,0 +1,2 @@ +ALTER TABLE icinga_user ADD COLUMN object_type ENUM('object', 'template') NOT NULL AFTER zone_id; + diff --git a/schema/mysql.sql b/schema/mysql.sql index 78b9e92d..c846f5c1 100644 --- a/schema/mysql.sql +++ b/schema/mysql.sql @@ -487,6 +487,7 @@ CREATE TABLE icinga_user ( enable_notifications ENUM('y', 'n') DEFAULT NULL, period_id INT(10) UNSIGNED DEFAULT NULL, zone_id INT(10) UNSIGNED DEFAULT NULL, + object_type ENUM('object', 'template') NOT NULL, PRIMARY KEY (id), UNIQUE INDEX object_name (object_name, zone_id), CONSTRAINT icinga_user_zone