Add object_type property to user

This commit is contained in:
Alexander Fuhr 2015-06-01 16:33:35 +02:00
parent c8842f368e
commit 706ae2e279
2 changed files with 3 additions and 0 deletions

View File

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

View File

@ -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