You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When updating from hapi-fhir version 6.6.0 to the newest version, data migration will throw error when trying to add index on column RES_PID of HFJ_RES_VER_PROV table since it is already indexed in previous version.
To Reproduce
Run hapi-fhir 6.6.0 with fresh OracleDB 12c. Notice data migration will happen automatically.
Stop hapi-fhir, and replace with newer version (e.g. version 6.7.14) on the same database.
Run hapi-fhir.
Observed behavior
ca.uhn.fhir.jpa.migrate.HapiMigrationException:
HAPI-0047: Failure executing task "Add IDX_RESVERPROV_RES_PID index to table HFJ_RES_VER_PROV", aborting!
Cause: ca.uhn.fhir.jpa.migrate.HapiMigrationException: HAPI-0061: Failed during task 6.8.0.20230510.2:
org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback;
uncategorized SQLException for SQL [create index IDX_RESVERPROV_RES_PID on HFJ_RES_VER_PROV(RES_PID)];
SQL state [72000]; error code [1408]; ORA-01408: such column list already indexed; nested exception is java.sql.SQLException: ORA-01408: such column list already indexed
Expected behavior
Hapi-fhir Start successfully.
Environment (please complete the following information):
HAPI FHIR Version 6.6.0 to version 6.7.14 and above
The text was updated successfully, but these errors were encountered:
Describe the bug
When updating from hapi-fhir version 6.6.0 to the newest version, data migration will throw error when trying to add index on column RES_PID of HFJ_RES_VER_PROV table since it is already indexed in previous version.
To Reproduce
Observed behavior
Expected behavior
Hapi-fhir Start successfully.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: