fix hfj search migration task (#6143)

* fix migration task

* changelog

* changelog

* code review

* spotless

---------

Co-authored-by: jdar <justin.dar@smiledigitalhealth.com>
This commit is contained in:
jdar8 2024-07-23 15:37:09 -07:00 committed by GitHub
parent 9860511d44
commit 33b766c658
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
type: fix
issue: 6142
jira: SMILE-8701
title: "Previously, if you upgraded from any older HAPI version to 6.6.0 or later, the `SEARCH_UUID` column length still
showed as 36 despite it being updated to have a length of 48. This has now been fixed."

View File

@ -468,6 +468,11 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
.failureAllowed(); .failureAllowed();
} }
} }
version.onTable(Search.HFJ_SEARCH)
.modifyColumn("20240722.1", Search.SEARCH_UUID)
.nullable()
.withType(ColumnTypeEnum.STRING, 48);
} }
protected void init720() { protected void init720() {