Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TRUNK-6285: Update global_property Description Field to Use VARCHAR Instead of TEXT #4819

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<property name="propertyValue" type="text" column="property_value"
not-null="false" length="65535"/>

<property name="description" type="text" not-null="false" length="65535"/>
<property name="description" type="java.lang.String" not-null="false" length="1024"/>

<property name="datatypeClassname" type="java.lang.String" column="datatype" length="255" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,13 @@
referencedTableName="obs"
referencedColumnNames="obs_id"/>
</changeSet>

<changeSet id="TRUNK-6285-2024-11-06" author="manojll">
<preConditions onFail="MARK_RAN">
<columnExists tableName="global_property" columnName="description"/>
</preConditions>
<comment>change description type TEXT to VARCHAR(1024) in 'global_property' table</comment>
<modifyDataType tableName="global_property" columnName="description" newDataType="VARCHAR(1024)"/>
</changeSet>

</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Loading