I have been using the “” modifier in liquibase and it works very well when I update my schema.
When I tried to use it to generate an update command file it didn’t generate any sql.
When I traced the code I found the following code for liquibase.sqlgenerator.core.InsertDataChangeGenerator
public class InsertDataChangeGenerator extends AbstractSqlGenerator<InsertDataChange.ExecutableStatement> {
public ValidationErrors validate(InsertDataChange.ExecutableStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) {
return new ValidationErrors();
}
public Sql[] generateSql(InsertDataChange.ExecutableStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) {
return new Sql[0];
}
}
Is this option supposed to work or does thie generateSql function need to be updated? This feature is important to my organiztion and I am willing to try to fix it (if it is broken). If it already works I’m interested in knowing what I am doing wrong.