diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/HapiFhirJpaMigrationTasks.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/HapiFhirJpaMigrationTasks.java index 18db9408637..f44f49f8963 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/HapiFhirJpaMigrationTasks.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/HapiFhirJpaMigrationTasks.java @@ -53,7 +53,6 @@ import java.util.Set; import java.util.stream.Collectors; import static ca.uhn.fhir.rest.api.Constants.UUID_LENGTH; -import static org.apache.commons.lang3.StringUtils.trim; @SuppressWarnings({"SqlNoDataSourceInspection", "SpellCheckingInspection", "java:S1192"}) public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks { @@ -94,6 +93,7 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks { init610(); init620(); init640(); + init640_after_20230126(); init660(); init680(); } @@ -375,7 +375,10 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks { .online(true) .withColumns("SEARCH_PID") .onlyAppliesToPlatforms(NON_AUTOMATIC_FK_INDEX_PLATFORMS); + } + protected void init640_after_20230126() { + Builder version = forVersion(VersionEnum.V6_3_0); { //We added this constraint when userSelected and Version were added. It is no longer necessary. Builder.BuilderWithTableName tagDefTable = version.onTable("HFJ_TAG_DEF"); tagDefTable.dropIndex("20230503.1", "IDX_TAGDEF_TYPESYSCODEVERUS");