From fe1994000fedfb3218cba7a813dd35201f9364da Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Tue, 16 Jun 2015 17:49:07 +0200 Subject: [PATCH] MySQL Schema: Drop service object_name index --- schema/mysql-changes/upgrade_7.sql | 1 + schema/mysql.sql | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 schema/mysql-changes/upgrade_7.sql diff --git a/schema/mysql-changes/upgrade_7.sql b/schema/mysql-changes/upgrade_7.sql new file mode 100644 index 00000000..38780b2d --- /dev/null +++ b/schema/mysql-changes/upgrade_7.sql @@ -0,0 +1 @@ +ALTER TABLE icinga_service DROP INDEX object_name; \ No newline at end of file diff --git a/schema/mysql.sql b/schema/mysql.sql index 9364e485..4379c7b6 100644 --- a/schema/mysql.sql +++ b/schema/mysql.sql @@ -359,7 +359,7 @@ CREATE TABLE icinga_service ( icon_image_alt VARCHAR(255) DEFAULT NULL, object_type ENUM('object', 'template', 'apply') NOT NULL, PRIMARY KEY (id), - UNIQUE INDEX object_name (object_name, zone_id), + -- UNIQUE INDEX object_name (object_name, zone_id), CONSTRAINT icinga_service_zone FOREIGN KEY zone (zone_id) REFERENCES icinga_zone (id)