Closed adriennesox closed 1 month ago
Heya! Sorry it has taken me so long to get to this. Will review it today!
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 83.53%. Comparing base (
406db33
) to head (e03af57
). Report is 51 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
https://github.com/hapifhir/hapi-fhir/issues/6339
If the schema being used for HAPI in Postgres is not the
public
schema, the 7.4.0 migrations fails because the newDeletePrimaryKeyTask
assumes the active schema ispublic
when it looks up the primary key name.This changes it to use
current_schema()
if available (i.e. the HAPI user has a search_path set) and'public'
otherwise.Tested by running the 7.4.2 migrations with this change incorporated against a database where the old migrations were failing.