schema/mysql: allow for external zones

This commit is contained in:
Thomas Gelf 2015-12-02 05:02:13 +01:00
parent 630e2f4ecc
commit c20efcd761
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
ALTER TABLE icinga_zone MODIFY object_type ENUM('object', 'template', 'external_object') NOT NULL;

View File

@ -148,7 +148,7 @@ CREATE TABLE icinga_zone (
id INT(10) UNSIGNED AUTO_INCREMENT NOT NULL,
parent_zone_id INT(10) UNSIGNED DEFAULT NULL,
object_name VARCHAR(255) NOT NULL,
object_type ENUM('object', 'template') NOT NULL,
object_type ENUM('object', 'template', 'external_object') NOT NULL,
is_global ENUM('y', 'n') NOT NULL DEFAULT 'n',
PRIMARY KEY (id),
UNIQUE INDEX object_name (object_name),