All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.sqlgenerator.ext.nochangelogupdate.NoOpMarkChangeSetRanGenerator Maven / Gradle / Ivy

Go to download

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy