SEARCH_UUID should be non-null (#6166)
* SEARCH_UUID should be non-null Avoid using constants in migrations because it creates false history. * comment
This commit is contained in:
parent
cd43523afe
commit
8d1529276b
|
@ -472,7 +472,7 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
|
||||||
|
|
||||||
version.onTable(Search.HFJ_SEARCH)
|
version.onTable(Search.HFJ_SEARCH)
|
||||||
.modifyColumn("20240722.1", Search.SEARCH_UUID)
|
.modifyColumn("20240722.1", Search.SEARCH_UUID)
|
||||||
.nullable()
|
.nonNullable()
|
||||||
.withType(ColumnTypeEnum.STRING, 48);
|
.withType(ColumnTypeEnum.STRING, 48);
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -1025,7 +1025,8 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
|
||||||
version.onTable(Search.HFJ_SEARCH)
|
version.onTable(Search.HFJ_SEARCH)
|
||||||
.addColumn("20230215.1", Search.SEARCH_UUID)
|
.addColumn("20230215.1", Search.SEARCH_UUID)
|
||||||
.nullable()
|
.nullable()
|
||||||
.type(ColumnTypeEnum.STRING, Search.SEARCH_UUID_COLUMN_LENGTH);
|
.type(ColumnTypeEnum.STRING, 48)
|
||||||
|
.doNothing(); // This migration used add instead of modify, so was skipped. See 20240722 for modify.
|
||||||
version.onTable(BulkImportJobEntity.HFJ_BLK_IMPORT_JOB)
|
version.onTable(BulkImportJobEntity.HFJ_BLK_IMPORT_JOB)
|
||||||
.addColumn("20230215.2", BulkImportJobEntity.JOB_ID)
|
.addColumn("20230215.2", BulkImportJobEntity.JOB_ID)
|
||||||
.nullable()
|
.nullable()
|
||||||
|
@ -3145,7 +3146,7 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
|
||||||
version.onTable("HFJ_SEARCH")
|
version.onTable("HFJ_SEARCH")
|
||||||
.modifyColumn("20190814.7", "SEARCH_UUID")
|
.modifyColumn("20190814.7", "SEARCH_UUID")
|
||||||
.nonNullable()
|
.nonNullable()
|
||||||
.withType(ColumnTypeEnum.STRING, Search.SEARCH_UUID_COLUMN_LENGTH);
|
.withType(ColumnTypeEnum.STRING, 36);
|
||||||
|
|
||||||
version.onTable("HFJ_SEARCH_PARM").dropThisTable("20190814.8");
|
version.onTable("HFJ_SEARCH_PARM").dropThisTable("20190814.8");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue