Skip to content

Commit

Permalink
Added liquibase changesets to rename orders.discontinued_reason and d…
Browse files Browse the repository at this point in the history
…iscontinued_reason_non_coded to order_reason and order_reason_non_coded respectively - TRUNK-4138
  • Loading branch information
wluyima committed Mar 27, 2014
1 parent 6384c53 commit d4281f5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions api/src/main/resources/liquibase-update-to-latest.xml
Expand Up @@ -7184,6 +7184,22 @@
referencedTableName="users"/>
</changeSet>

<changeSet id="201402041601-TRUNK-4138" author="wyclif">
<preConditions onFail="MARK_RAN">
<columnExists columnName="discontinued_reason" tableName="orders" />
</preConditions>
<comment>Renaming orders.discontinued_reason column to order_reason</comment>
<renameColumn tableName="orders" newColumnName="order_reason" oldColumnName="discontinued_reason" columnDataType="int" />
</changeSet>

<changeSet id="201402041604-TRUNK-4138" author="wyclif">
<preConditions onFail="MARK_RAN">
<columnExists columnName="discontinued_reason_non_coded" tableName="orders" />
</preConditions>
<comment>Renaming orders.discontinued_reason_non_coded column to order_reason_non_coded</comment>
<renameColumn tableName="orders" newColumnName="order_reason_non_coded" oldColumnName="discontinued_reason_non_coded" columnDataType="varchar(255)" />
</changeSet>

<changeSet id="201401161532-TRUNK-4202" author="k-joseph">
<preConditions onFail="MARK_RAN">
<not><sqlCheck expectedResult="0">select count(*) from orders</sqlCheck></not>
Expand Down

0 comments on commit d4281f5

Please sign in to comment.