schema: flipped pg/mysql migration

This commit is contained in:
Thomas Gelf 2018-10-30 20:20:25 +01:00
parent 9864d86422
commit fc2e972bcd
2 changed files with 5 additions and 5 deletions

View File

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

View File

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