liquibase.sqlgenerator.ext.nochangelogupdate.NoOpGetNextChangeSetSequenceValueGenerator 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.GetNextChangeSetSequenceValueGenerator;
import liquibase.statement.core.GetNextChangeSetSequenceValueStatement;
public class NoOpGetNextChangeSetSequenceValueGenerator extends GetNextChangeSetSequenceValueGenerator {
@Override
public boolean supports(GetNextChangeSetSequenceValueStatement statement, Database database) {
return Config.getInstance().isEnabled();
}
@Override
public int getPriority() {
return 1000;
}
@Override
public Sql[] generateSql(GetNextChangeSetSequenceValueStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) {
return null;
}
}