liquibase.Liquibase.getDatabaseChangeLog()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(257)

本文整理了Java中liquibase.Liquibase.getDatabaseChangeLog()方法的一些代码示例,展示了Liquibase.getDatabaseChangeLog()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Liquibase.getDatabaseChangeLog()方法的具体详情如下:
包路径:liquibase.Liquibase
类名称:Liquibase
方法名:getDatabaseChangeLog

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){

相关文章