Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

MySQL types don't match when generating diff logs

$
0
0
Consider the following example of modifying an existing table -- change the column type from VARCHAR(256) to TEXT:

  1. ALTER TABLE Team
    CHANGE COLUMN Name Name TEXT NULL DEFAULT NULL ;
When I run create diff change log using diffChangeLog parameter, I get the following changeset:

      <changeSet author="dulino (generated)" id="1519671364901-3">

        <modifyDataType columnName="Name" newDataType="clob" tableName="Team"/>

        <dropNotNullConstraint columnDataType="clob" columnName="Context_Country_Code" tableName="Team"/>

    </changeSet>


Note the column data type becomes "clob", not "text." We are using MySQL. This does not happen for a brand new table, only for existing tables.


Why is that? Is there something I am doing wrong or is it a bug?


Why is that?


Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>