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>
This commit is contained in:
parent
3974239c48
commit
a5eddc3837
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
type: fix
|
||||||
|
issue: 5722
|
||||||
|
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
|
@ -892,6 +892,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