Migration not executing 8.4.0 Migration

13 views
Skip to first unread message

Michal Ševčík

unread,
Sep 24, 2025, 3:53:17 PM (3 days ago) Sep 24
to HAPI FHIR
Hello,

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?

Michal Ševčík

unread,
Sep 24, 2025, 4:07:05 PM (3 days ago) Sep 24
to HAPI FHIR
Sorry,

After further look I think it actually got executed as I see the other migrations in the database.
I think that only this PK migration is not working as expected.

Dátum: streda 24. septembra 2025, čas: 21:53:17 UTC+2, odosielateľ: Michal Ševčík
Reply all
Reply to author
Forward
0 new messages