...
Code Block |
---|
<dependency> <groupId>org.openmrs.liquibase.ext</groupId> <artifactId>identity-insert</artifactId> <version>1.2.1-SNAPSHOT</version> </dependency> |
Type Converter
After upgrading In liquibase to version 2.0.3, all changesets of column data type TEXT are mapped to LONGTEXT in MySQL. The effect of this is that MySQL users end up with excessively long text fields. The Type-Converter Liquibase extension allows mapping them to TEXT, when the database is found to be MySQL. We are currently using version 2.0.1 of liquibase and hence this mapping has no value at the moment but will be useful when we eventually upgrade. The second use of this extension is mapping CLOB data types to LONGTEXT, for MySQL, instead of TEXT as incorrectly done by liquibase version 2.0.1 which we currently use.
Maven code for type converter:
...