Skip to content

Commit

Permalink
BAH-3908 | Add migrations to update datatype of name and description …
Browse files Browse the repository at this point in the history
…columns (#83)
  • Loading branch information
mohan-13 authored Jun 26, 2024
1 parent d1401dd commit 066b414
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions liquibase/Bahmni/BahmniConfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1821,5 +1821,29 @@
WHERE name = 'accessionStrategy';
</sql>
</changeSet>

<changeSet id="BAH3908_test_table" context="bahmni" author="Mohankumar" >
<preConditions onFail="MARK_RAN">
<columnExists tableName="test" columnName="name"/>
<columnExists tableName="test" columnName="description"/>
</preConditions>
<comment>Extend the size of name and description columns of Test table</comment>
<sql>
ALTER TABLE test ALTER COLUMN name TYPE varchar(256);
ALTER TABLE test ALTER COLUMN description TYPE varchar(256);
</sql>
</changeSet>
<changeSet id="BAH3908_panel_table" context="bahmni" author="Mohankumar" >
<preConditions onFail="MARK_RAN">
<columnExists tableName="panel" columnName="name"/>
<columnExists tableName="panel" columnName="description"/>
</preConditions>
<comment>Extend the size of name and description columns of Panel table</comment>
<sql>
ALTER TABLE panel ALTER COLUMN name TYPE varchar(256);
ALTER TABLE panel ALTER COLUMN description TYPE varchar(256);
</sql>
</changeSet>

</databaseChangeLog>

0 comments on commit 066b414

Please sign in to comment.