From fc2e972bcdd4e55154936e446bf0173ed701371e Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 30 Oct 2018 20:20:25 +0100 Subject: [PATCH] schema: flipped pg/mysql migration --- schema/mysql-migrations/upgrade_156.sql | 5 +++-- schema/pgsql-migrations/upgrade_156.sql | 5 ++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/schema/mysql-migrations/upgrade_156.sql b/schema/mysql-migrations/upgrade_156.sql index 30ccb7d2..cd13edf4 100644 --- a/schema/mysql-migrations/upgrade_156.sql +++ b/schema/mysql-migrations/upgrade_156.sql @@ -1,5 +1,6 @@ -DROP INDEX command_object_name; -CREATE UNIQUE INDEX command_object_name ON icinga_command (object_name); +ALTER TABLE icinga_command + DROP INDEX object_name, +ADD UNIQUE INDEX object_name (object_name); INSERT INTO director_schema_migration (schema_version, migration_time) diff --git a/schema/pgsql-migrations/upgrade_156.sql b/schema/pgsql-migrations/upgrade_156.sql index 6f415e74..30ccb7d2 100644 --- a/schema/pgsql-migrations/upgrade_156.sql +++ b/schema/pgsql-migrations/upgrade_156.sql @@ -1,6 +1,5 @@ -ALTER TABLE icinga_command - DROP INDEX object_name, - ADD UNIQUE INDEX object_name (object_name); +DROP INDEX command_object_name; +CREATE UNIQUE INDEX command_object_name ON icinga_command (object_name); INSERT INTO director_schema_migration (schema_version, migration_time)