Need to have better control of type generation for a specific database

How to handle those column conversions is high on my list of things to improve. For now,  you have a couple options:

 You could use changelog parameters. Define parameters like “${char_type}” and in your changeset set 

<Another option would be to create an extension that overrides the liquibase.datatype.core.CharType and other classes. You extend the base classes then override the toDatabaseDataType() method to return whatever works best for you. See for more information on the extension system.


Hello, I have following changeset:


Thanks for posting the code. It should help others down the road.


Thanks, Nathan.
In order to generate SQL I wanted I just added two classes to my application:

  1. }

and Liquibase automatically registered them for me and started to use for SQL generation.