Backport 5722 into 7.0.1 (#5729)
* Bugfix: removed reference to public schema in raw sql (#5722) * Bugfix: removed reference to public schema in raw sql * Add attribution for #5722 --------- Co-authored-by: James Agnew <jamesagnew@gmail.com> * Add backport tag * Build fix --------- Co-authored-by: pano-smals <135063507+pano-smals@users.noreply.github.com>
This commit is contained in:
parent
28d88b1462
commit
e71efe5029
|
@ -137,7 +137,6 @@ public enum VersionEnum {
|
||||||
V7_0_0,
|
V7_0_0,
|
||||||
V7_0_1,
|
V7_0_1,
|
||||||
|
|
||||||
V7_0_1,
|
|
||||||
V7_1_0,
|
V7_1_0,
|
||||||
V7_2_0;
|
V7_2_0;
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
type: fix
|
||||||
|
issue: 5722
|
||||||
|
backport: 7.0.1
|
||||||
|
title: "An incorrect migration script caused a failure when upgrading to HAPI FHIR 7.0.0 on
|
||||||
|
PostgreSQL if the database was not in the `public` schema. Thanks to GitHub
|
||||||
|
user @pano-smals for the contribution!"
|
|
@ -183,7 +183,7 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
|
||||||
{
|
{
|
||||||
version.executeRawSql(
|
version.executeRawSql(
|
||||||
"20231212.1",
|
"20231212.1",
|
||||||
"CREATE INDEX CONCURRENTLY idx_sp_string_hash_nrm_pattern_ops ON public.hfj_spidx_string USING btree (hash_norm_prefix, sp_value_normalized varchar_pattern_ops, res_id, partition_id)")
|
"CREATE INDEX CONCURRENTLY idx_sp_string_hash_nrm_pattern_ops ON hfj_spidx_string USING btree (hash_norm_prefix, sp_value_normalized varchar_pattern_ops, res_id, partition_id)")
|
||||||
.setTransactional(false)
|
.setTransactional(false)
|
||||||
.onlyAppliesToPlatforms(DriverTypeEnum.POSTGRES_9_4)
|
.onlyAppliesToPlatforms(DriverTypeEnum.POSTGRES_9_4)
|
||||||
.onlyIf(
|
.onlyIf(
|
||||||
|
@ -197,7 +197,7 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
|
||||||
"Index idx_sp_string_hash_nrm_pattern_ops already exists");
|
"Index idx_sp_string_hash_nrm_pattern_ops already exists");
|
||||||
version.executeRawSql(
|
version.executeRawSql(
|
||||||
"20231212.2",
|
"20231212.2",
|
||||||
"CREATE UNIQUE INDEX CONCURRENTLY idx_sp_uri_hash_identity_pattern_ops ON public.hfj_spidx_uri USING btree (hash_identity, sp_uri varchar_pattern_ops, res_id, partition_id)")
|
"CREATE UNIQUE INDEX CONCURRENTLY idx_sp_uri_hash_identity_pattern_ops ON hfj_spidx_uri USING btree (hash_identity, sp_uri varchar_pattern_ops, res_id, partition_id)")
|
||||||
.setTransactional(false)
|
.setTransactional(false)
|
||||||
.onlyAppliesToPlatforms(DriverTypeEnum.POSTGRES_9_4)
|
.onlyAppliesToPlatforms(DriverTypeEnum.POSTGRES_9_4)
|
||||||
.onlyIf(
|
.onlyIf(
|
||||||
|
|
4
pom.xml
4
pom.xml
|
@ -887,6 +887,10 @@
|
||||||
<name>Max Bureck</name>
|
<name>Max Bureck</name>
|
||||||
<organization>Fraunhofer FOKUS</organization>
|
<organization>Fraunhofer FOKUS</organization>
|
||||||
</developer>
|
</developer>
|
||||||
|
<developer>
|
||||||
|
<id>pano-smals</id>
|
||||||
|
<name>pano-smals</name>
|
||||||
|
</developer>
|
||||||
</developers>
|
</developers>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
|
|
Loading…
Reference in New Issue