Update HapiFhirJpaMigrationTasks.java

Corrected ordering
This commit is contained in:
Jens Kristian Villadsen 2022-04-25 12:59:58 +02:00 committed by GitHub
parent 8ad18915a1
commit af3afa8a9d
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,17 +273,18 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
replaceNumericSPIndices(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
version.onTable("NPM_PACKAGE_VER")
.modifyColumn("20220329.1","FHIR_VERSION_ID").nonNullable().withType(ColumnTypeEnum.STRING, 20);
version.onTable("NPM_PACKAGE_VER_RES")
.modifyColumn("20220329.2","FHIR_VERSION_ID").nonNullable().withType(ColumnTypeEnum.STRING, 20);
// Drop Index on HFJ_RESOURCE.INDEX_STATUS
version
.onTable("HFJ_RESOURCE")
.dropIndex("20220314.1", "IDX_INDEXSTATUS");
version
.onTable("BT2_JOB_INSTANCE")
.addColumn("20220416.1", "CUR_GATED_STEP_ID")