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.
-
Learn
-
Resources
-
Free Tools
OSS Risk Scanner Database DevOps Risk AssessmentCheat Sheets
Snowflake + Liquibase Databricks + Liquibase -
eBooks
6 Liquibase Community Risks & How to Avoid Guide: SOC 2 Compliance at the Database Layer Guide: Quantify the Value of Liquibase Secure -
Comparison Guides
Liquibase vs. Flyway Liquibase vs. Bytebase Liquibase Community vs Liquibase Secure
-
- Quickstart
- Get Started
- Documentation
- University
-
Resources
- Connect
- Contribute
- Join
- Blog