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