Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Liquibase script to make all data in a column uppercase

I have a problem where the data in a particular column is stored as lowercase (This problem occurs only in MSSQL).I had thought of writing a change set to force uppercase in that particular column, but I am not sure on how to go about it

like image 650
tr_quest Avatar asked Dec 11 '22 13:12

tr_quest


1 Answers

Try the following changeset:

<changeSet author="mark" id="2013-07-15-01">
    <update tableName="MyTable">
        <column name="MyColumn" valueComputed="upper(MyColumn)"/>
    </update>
</changeSet>

Documented here.

like image 164
Mark O'Connor Avatar answered Dec 30 '22 22:12

Mark O'Connor