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:
parent
0e8e0ecb95
commit
154ceb785d
1 changed files with 16 additions and 2 deletions
|
|
@ -58,16 +58,30 @@
|
||||||
columnDataType="BOOLEAN" />
|
columnDataType="BOOLEAN" />
|
||||||
</changeSet>
|
</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>
|
<comment>Change column description in order_element to TEXT</comment>
|
||||||
<modifyDataType tableName="order_element" columnName="description" newDataType="TEXT" />
|
<modifyDataType tableName="order_element" columnName="description" newDataType="TEXT" />
|
||||||
</changeSet>
|
</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>
|
<comment>Change column description in order_element_template to TEXT</comment>
|
||||||
<modifyDataType tableName="order_element_template" columnName="description" newDataType="TEXT" />
|
<modifyDataType tableName="order_element_template" columnName="description" newDataType="TEXT" />
|
||||||
</changeSet>
|
</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">
|
<changeSet id="add-budget-column-to-order_line" author="mrego">
|
||||||
<comment>add budget column to order_line</comment>
|
<comment>add budget column to order_line</comment>
|
||||||
<addColumn tableName="order_line">
|
<addColumn tableName="order_line">
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue