MySQL Schema: Drop service object_name index

This commit is contained in:
Alexander Fuhr 2015-06-16 17:49:07 +02:00
parent a9b9342092
commit fe1994000f
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
ALTER TABLE icinga_service DROP INDEX object_name;

View File

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