【问题标题】:databaseChangeLog does not contain a list of entries. Each changeSet must begin ' - changeSet:'databaseChangeLog 不包含条目列表。每个 changeSet 必须以 '-changeSet:' 开头
【发布时间】:2021-01-30 10:45:09
【问题描述】:

我想用 liquibase 创建 mysql 个人表。但是我遇到了一个错误,所以

原因:liquibase.exception.ChangeLogParseException:databaseChangeLog 不包含条目列表。每个 changeSet 必须以 '-changeSet:' 开始

db.changelog-master.yaml

databaseChangeLog:
  -includeAll:
    path: db/changelog/v-0.1/

20201015-01-create-person-table.yaml

databaseChangeLog:
  - changeSet:
      id: 20201015-01
      author: nursultankhalilov
      changes:
        - createTable:
            tableName: persons
            columns:
              - column:
                name: person_id
                type: bigint
                autoIncrement: true
                constraints:
                  primaryKey: true
                  primaryKeyName: person_pk
                  nullable: false
              - column:
                name: person_name
                type: VARCHAR(255)
                constraints:
                  nullable: false
              - column:
                  name: person_surname
                  type: VARCHAR(255)
                  constraints:
                    nullable: false
              - column:
                  name: person_email
                  type: VARCHAR(255)
                  constraints:
                    nullable: false
                    unique: true
              - column:
                  name: person_phone
                  type: VARCHAR(20)

数据包结构:

我做错了什么?请帮忙

【问题讨论】:

    标签: spring-boot yaml liquibase


    【解决方案1】:

    我认为“-includeAll”后面应该有一个空格

    【讨论】:

      猜你喜欢
      • 2013-08-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-04
      • 1970-01-01
      • 2018-06-09
      相关资源
      最近更新 更多