Fix problems with Liquibase 2.0.4 and MySQL for tag modifyDataType

modifyDataType was converting the column in LONGTEXT instead of TEXT and this
was causing problems with Hibernate mapping.

FEA: ItEr76S03Community
This commit is contained in:
Manuel Rego Casasnovas 2012-04-25 08:52:49 +02:00
parent 0e8e0ecb95
commit 154ceb785d

View file

@ -58,16 +58,30 @@
columnDataType="BOOLEAN" />
</changeSet>
<changeSet id="change-column-description-in-order_element-to-text" author="mrego">
<changeSet id="change-column-description-in-order_element-to-text"
author="mrego" dbms="postgresql">
<comment>Change column description in order_element to TEXT</comment>
<modifyDataType tableName="order_element" columnName="description" newDataType="TEXT" />
</changeSet>
<changeSet id="change-column-description-in-order_element_template-to-text" author="mrego">
<changeSet id="change-column-description-in-order_element_template-to-text"
author="mrego" dbms="postgresql">
<comment>Change column description in order_element_template to TEXT</comment>
<modifyDataType tableName="order_element_template" columnName="description" newDataType="TEXT" />
</changeSet>
<changeSet id="change-column-description-in-to-text-in-mysql"
author="mrego" dbms="mysql">
<comment>
Change column description in order_element and
order_element_template to TEXT in MySQL.
Because of using modifyDataType convert the column in LONGTEXT and
this is causing some problems with Hibernate mapping.
</comment>
<sql>ALTER TABLE order_element MODIFY description TEXT</sql>
<sql>ALTER TABLE order_element_template MODIFY description TEXT</sql>
</changeSet>
<changeSet id="add-budget-column-to-order_line" author="mrego">
<comment>add budget column to order_line</comment>
<addColumn tableName="order_line">