Spring Liquibase Includeal被忽略

Spring Liquibase Includeal被忽略,spring,maven,migration,liquibase,Spring,Maven,Migration,Liquibase,liquibase中的includeal标记根本不起作用,至少在我尝试使用它的项目中是这样 我的环境: 春季1.5.4 Maven 3.5.4 液化核心3.5.3 液化配置(存储在src/main/resources/下) db/changelog-master.yaml: databaseChangeLog: - preConditions: - dbms: type: h2 - includeAll: path: db/changelog/ch

liquibase中的
includeal
标记根本不起作用,至少在我尝试使用它的项目中是这样

我的环境:

  • 春季1.5.4
  • Maven 3.5.4
  • 液化核心3.5.3
液化配置(存储在src/main/resources/下)
db/changelog-master.yaml:

databaseChangeLog:
  - preConditions:
    - dbms:
        type: h2
  - includeAll:
      path: db/changelog/changes
目录src/main/resources/db/changelog/changes由两个测试变更日志文件组成:
00-a-sample_changelog.yml

00-b-sample_changelog_cleanup.yml

这种配置似乎不起作用。未记录任何内容,DATABASECHANGELOG表为空。即使我尝试只使用目录中的第一个文件(即
createTable
one),也没有创建新表的迹象。

但是,当我尝试在
db.changelogmaster
中使用单独的
include
语句时,它工作得非常好


我知道这个问题指的是,但症状略有不同。我希望mods也会发现这不是重复的

您是否看到过此相关请求和相关的拉取请求。拉动请求已被接受,问题似乎出现在liquibase 3.5.3中。也许更新liquibase会有帮助…谢谢你的链接,我以前没见过:)至于liquibase版本-我更新到了3.6.2-它不起作用
databaseChangeLog:
  - changeSet:
      id: 1
      author: JonDoe
      comment: "Test changeset"
      preConditions:
        - onFail: WARN
        - not:
          - tableExists:
              schemaName: public
              tableName: liquid-test-jd
      changes:
      - createTable:
          tableName: liquid-test-jd
          columns:
          - column:
              name: test_id
              type: number
          - column:
              name: test_time
              type: timestamp
databaseChangeLog:
      - changeSet:
          id: 2
          author: JonDoe
          comment: Cleanup test changeset
          preConditions:
            - onFail: WARN
            - tableExists:
                 schemaName: public
                 tableName: liquid-test-jd
          changes:
          - dropTable:
              schemaName: public
              tableName: liquid-test-jd