Search code examples
yamlliquibase

Could not find databaseChangeLog node with include


I`m trying to include changeset.yaml file into changelog.yaml for Liquidbase.

file changelog.yaml

databaseChangeLog:
  - include:
      file: migrations/changeset.yaml

changeset.yaml

changeset:
  id: 1
  author: vlad

Getting this when executing update

Unexpected error running Liquibase: Could not find databaseChangeLog node

Any ideas why? Thanks.

UPDATE: Seems to be the same if im using xml format.


Solution

  • changeset.yaml must contain databaseChangeLog So in my case i should have had this:

    changeset.yaml

    databaseChangeLog:
      - changeSet:
          id: 1
          author: vlad
    

    Documentation wasn`t really helpful. Found answer here in github