Update HapiFhirJpaMigrationTasks.java

Moving index status to be last operation
This commit is contained in:
Jens Kristian Villadsen 2022-05-01 21:11:21 +02:00 committed by GitHub
parent 644b885ebe
commit 37bfd3e66e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -273,11 +273,6 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
replaceNumericSPIndices(version); replaceNumericSPIndices(version);
replaceQuantitySPIndices(version); replaceQuantitySPIndices(version);
// Drop Index on HFJ_RESOURCE.INDEX_STATUS
version
.onTable("HFJ_RESOURCE")
.dropIndex("20220314.1", "IDX_INDEXSTATUS");
// Fix for https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/328 // Fix for https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/328
version.onTable("NPM_PACKAGE_VER") version.onTable("NPM_PACKAGE_VER")
.modifyColumn("20220329.1","FHIR_VERSION_ID").nonNullable().withType(ColumnTypeEnum.STRING, 20); .modifyColumn("20220329.1","FHIR_VERSION_ID").nonNullable().withType(ColumnTypeEnum.STRING, 20);
@ -335,6 +330,12 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
// we will drop the updated column. Start with the index. // we will drop the updated column. Start with the index.
tokenTable.dropIndexOnline("20220428.5", "IDX_SP_STRING_UPDATED"); tokenTable.dropIndexOnline("20220428.5", "IDX_SP_STRING_UPDATED");
} }
// Drop Index on HFJ_RESOURCE.INDEX_STATUS
version
.onTable("HFJ_RESOURCE")
.dropIndex("20220501.1", "IDX_INDEXSTATUS");
} }
/** /**