liquibase.ext.filechangelog.FileChangeLogHistoryService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-filechangelog Show documentation
Show all versions of liquibase-filechangelog Show documentation
Liquibase extension to use a local file rather than a database table to track executed changeSets
package liquibase.ext.filechangelog;
import liquibase.change.CheckSum;
import liquibase.changelog.AbstractChangeLogHistoryService;
import liquibase.changelog.ChangeSet;
import liquibase.changelog.OfflineChangeLogHistoryService;
import liquibase.changelog.RanChangeSet;
import liquibase.database.Database;
import liquibase.exception.DatabaseException;
import liquibase.exception.LiquibaseException;
import liquibase.exception.UnexpectedLiquibaseException;
import liquibase.servicelocator.LiquibaseService;
import liquibase.util.ISODateFormat;
import liquibase.util.LiquibaseUtil;
import liquibase.util.csv.CSVReader;
import liquibase.util.csv.CSVWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@LiquibaseService(skip = false)
public class FileChangeLogHistoryService extends OfflineChangeLogHistoryService {
public FileChangeLogHistoryService() {
super(null, Config.getInstance().getChangeLogHistoryFile(), false, false);
}
@Override
public int getPriority() {
return 1000;
}
@Override
public boolean supports(Database database) {
return Config.getInstance().isEnabled();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy