本文整理了Java中liquibase.Liquibase.getDatabaseChangeLog()
方法的一些代码示例,展示了Liquibase.getDatabaseChangeLog()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Liquibase.getDatabaseChangeLog()
方法的具体详情如下:
包路径:liquibase.Liquibase
类名称:Liquibase
方法名:getDatabaseChangeLog
暂无
代码示例来源:origin: org.keycloak/keycloak-model-jpa
protected Status validateChangeSet(Liquibase liquibase, String changelog) throws LiquibaseException {
final Status result;
List<ChangeSet> changeSets = getLiquibaseUnrunChangeSets(liquibase);
if (!changeSets.isEmpty()) {
if (changeSets.size() == liquibase.getDatabaseChangeLog().getChangeSets().size()) {
result = Status.EMPTY;
} else {
logger.debugf("Validation failed. Database is not up-to-date for changelog %s", changelog);
result = Status.OUTDATED;
}
} else {
logger.debugf("Validation passed. Database is up-to-date for changelog %s", changelog);
result = Status.VALID;
}
// Needs to restart liquibase services to clear ChangeLogHistoryServiceFactory.getInstance().
// See https://issues.jboss.org/browse/KEYCLOAK-3769 for discussion relevant to why reset needs to be here
resetLiquibaseServices(liquibase);
return result;
}
代码示例来源:origin: io.github.gitbucket/solidbase
params.set("currentDateTime", new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss").format(new Date()));
DatabaseChangeLog changeLogs = liquibase.getDatabaseChangeLog();
List<ChangeSet> changeSets = changeLogs.getChangeSets();
for(ChangeSet changeSet: changeSets){
代码示例来源:origin: gitbucket/solidbase
params.set("currentDateTime", new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss").format(new Date()));
DatabaseChangeLog changeLogs = liquibase.getDatabaseChangeLog();
List<ChangeSet> changeSets = changeLogs.getChangeSets();
for(ChangeSet changeSet: changeSets){
内容来源于网络,如有侵权,请联系作者删除!