liquibase.sqlgenerator.ext.nochangelogupdate.NoOpMarkChangeSetRanGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-nochangelogupdate Show documentation
Show all versions of liquibase-nochangelogupdate Show documentation
When running an update, Liquibase will not touch the databasechangelog table to mark changeSets as ran
The newest version!
package liquibase.sqlgenerator.ext.nochangelogupdate;
import liquibase.database.Database;
import liquibase.sql.Sql;
import liquibase.sqlgenerator.SqlGeneratorChain;
import liquibase.sqlgenerator.core.MarkChangeSetRanGenerator;
import liquibase.statement.core.MarkChangeSetRanStatement;
public class NoOpMarkChangeSetRanGenerator extends MarkChangeSetRanGenerator {
@Override
public boolean supports(MarkChangeSetRanStatement statement, Database database) {
return Config.getInstance().isEnabled();
}
@Override
public int getPriority() {
return 1000;
}
@Override
public Sql[] generateSql(MarkChangeSetRanStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) {
return null;
}
}