From c20efcd761cbe9fe7cfbdc2179ab6b05d238955c Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 2 Dec 2015 05:02:13 +0100 Subject: [PATCH] schema/mysql: allow for external zones --- schema/mysql-changes/upgrade_48.sql | 1 + schema/mysql.sql | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 schema/mysql-changes/upgrade_48.sql diff --git a/schema/mysql-changes/upgrade_48.sql b/schema/mysql-changes/upgrade_48.sql new file mode 100644 index 00000000..de72ece0 --- /dev/null +++ b/schema/mysql-changes/upgrade_48.sql @@ -0,0 +1 @@ +ALTER TABLE icinga_zone MODIFY object_type ENUM('object', 'template', 'external_object') NOT NULL; diff --git a/schema/mysql.sql b/schema/mysql.sql index d06038c6..096c6ae5 100644 --- a/schema/mysql.sql +++ b/schema/mysql.sql @@ -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),