I am trying to use hapi-fhir-cli to migrate PostgreSQL database.
Somehow the 8.4.0 migrations are not getting executed.
This is the command I run:
./hapi-fhir-cli migrate-database -d POSTGRES_9_4 -n <NAME> -u <URL> -p <PASS>
The logs are mentioning running version 8_4_0:
? HAPI FHIR 8.4.0 - Command Line Tool
-------------------------------------------------------------------
But the last few logs I see is:
8.2.0.20250625.01: SQL "create index CONCURRENTLY IDX_RESVER_ID_SRC_URI on HFJ_RES_VER(SOURCE_URI, RES_ID, PARTITION_ID)" returned 0
Completed executing 21 migration tasks
And looking in the DB migration table I see that 8.2.0 was the last one executed.
If I look at this migration
version.onTable("HFJ_RESOURCE_MODIFIED").dropPrimaryKey("20250729.1");
version.onTable("HFJ_RESOURCE_MODIFIED").addPrimaryKey("20250729.2", "RES_ID", "RES_VER", "RESOURCE_TYPE");
It is never executed and I only get the id and version pk..
Any ideas why that might be the case?