From 77fc1026bb0967c74e084a129d585d7c2670dacb Mon Sep 17 00:00:00 2001 From: Andrija Panic <45762285+andrijapanicsb@users.noreply.github.com> Date: Tue, 18 Feb 2020 09:40:51 +0100 Subject: [PATCH] engine/schema: remove duplicate index region (#3882) Remove duplicate index region. --- .../main/resources/META-INF/db/schema-41300to41400-cleanup.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/schema/src/main/resources/META-INF/db/schema-41300to41400-cleanup.sql b/engine/schema/src/main/resources/META-INF/db/schema-41300to41400-cleanup.sql index fa631ef50fa..7758f116dd7 100644 --- a/engine/schema/src/main/resources/META-INF/db/schema-41300to41400-cleanup.sql +++ b/engine/schema/src/main/resources/META-INF/db/schema-41300to41400-cleanup.sql @@ -23,3 +23,6 @@ DELETE FROM `cloud`.`configuration` WHERE name = 'host.maintenance.retries'; -- Stop asking user (in the upgraded documentation) to remove a trailing slash for local KVM pool UPDATE `cloud`.`storage_pool` SET path="/var/lib/libvirt/images" WHERE path="/var/lib/libvirt/images/"; + +-- remove (one of) duplicate unique indexes from Region table +ALTER TABLE `region` DROP INDEX `id_3`;