* liquibase.database.Database, liquibase.sqlgenerator.SqlGeneratorChain)
*/
@Override
public Warnings warn(ModifyDataTypeStatement modifyDataTypeStatement, Database database,
SqlGeneratorChain sqlGeneratorChain) {
Warnings warnings = super.warn(modifyDataTypeStatement, database, sqlGeneratorChain);
if (database instanceof MySQLDatabase
&& !modifyDataTypeStatement.getNewDataType().toLowerCase().contains("varchar")) {
warnings.addWarning("modifyDataType will lose primary key/autoincrement/not null settings for mysql."
+ " Use <sql> and re-specify all configuration if this is the case");
}
return warnings;
}