From 7e5657f84247312eb89494b766ead806a3fae662 Mon Sep 17 00:00:00 2001 From: ManojLL Date: Wed, 6 Nov 2024 14:16:53 +0530 Subject: [PATCH 1/2] TRUNK-6285: Added Liquibase changeSet to update global_property description column from TEXT to VARCHAR --- .../updates/liquibase-update-to-latest-2.7.x.xml | 8 ++++++++ .../java/org/openmrs/util/DatabaseUpdaterDatabaseIT.java | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/api/src/main/resources/org/openmrs/liquibase/updates/liquibase-update-to-latest-2.7.x.xml b/api/src/main/resources/org/openmrs/liquibase/updates/liquibase-update-to-latest-2.7.x.xml index 5911cc7ef82..4c0c34f7899 100644 --- a/api/src/main/resources/org/openmrs/liquibase/updates/liquibase-update-to-latest-2.7.x.xml +++ b/api/src/main/resources/org/openmrs/liquibase/updates/liquibase-update-to-latest-2.7.x.xml @@ -169,5 +169,13 @@ referencedTableName="obs" referencedColumnNames="obs_id"/> + + + + + + change description type TEXT to VARCHAR(1024) in 'global_property' table + + diff --git a/api/src/test/java/org/openmrs/util/DatabaseUpdaterDatabaseIT.java b/api/src/test/java/org/openmrs/util/DatabaseUpdaterDatabaseIT.java index fb7616ac9cd..781e1148bb9 100644 --- a/api/src/test/java/org/openmrs/util/DatabaseUpdaterDatabaseIT.java +++ b/api/src/test/java/org/openmrs/util/DatabaseUpdaterDatabaseIT.java @@ -30,7 +30,7 @@ public class DatabaseUpdaterDatabaseIT extends DatabaseIT { * This constant needs to be updated when adding new Liquibase update files to openmrs-core. */ - private static final int CHANGE_SET_COUNT_FOR_GREATER_THAN_2_1_X = 899; + private static final int CHANGE_SET_COUNT_FOR_GREATER_THAN_2_1_X = 900; private static final int CHANGE_SET_COUNT_FOR_2_1_X = 870; From 75b9ba30ed8104f71e1f2abd4d13679b41c39d9e Mon Sep 17 00:00:00 2001 From: ManojLL Date: Wed, 6 Nov 2024 15:06:21 +0530 Subject: [PATCH 2/2] TRUNK-6285: Added Liquibase changeSet to update global_property description column from TEXT to VARCHAR --- .../org/openmrs/api/db/hibernate/GlobalProperty.hbm.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/resources/org/openmrs/api/db/hibernate/GlobalProperty.hbm.xml b/api/src/main/resources/org/openmrs/api/db/hibernate/GlobalProperty.hbm.xml index e67ea95d39e..885d23f41bd 100644 --- a/api/src/main/resources/org/openmrs/api/db/hibernate/GlobalProperty.hbm.xml +++ b/api/src/main/resources/org/openmrs/api/db/hibernate/GlobalProperty.hbm.xml @@ -26,7 +26,7 @@ - +