From b67f30a03ba725e0f249e028d8d5b539b8c17d61 Mon Sep 17 00:00:00 2001 From: Mike G Date: Fri, 24 Jul 2020 10:03:21 -0400 Subject: [PATCH] fix oracle and derby default --- .../java/ca/uhn/fhir/jpa/migrate/taskdef/DropIndexTask.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/taskdef/DropIndexTask.java b/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/taskdef/DropIndexTask.java index 037cd81b33a..ae15fa6c8a7 100644 --- a/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/taskdef/DropIndexTask.java +++ b/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/taskdef/DropIndexTask.java @@ -116,6 +116,8 @@ public class DropIndexTask extends BaseTableTask { break; case DERBY_EMBEDDED: case ORACLE_12C: + sql.add("alter table " + theTableName + " drop constraint " + theIndexName); + break; case MSSQL_2012: sql.add("drop index " + theIndexName + " on " + theTableName); break;