Changelog is absent but a migration is applied - (author is NULL)

Hello!
I run Liquibase within Spring Boot Application (Java) and
I have following databaseChangelog:

databaseChangeLog:
  - changeSet:
      - id: 1
      - sqlFile:
          - path: classpath:/migrations/sql/0001_initial_schema.sql

As you can see, there is no author specified.
When i start an app

Expected behaviour:

  • it fails because of author is NULL
  • 0001_initial_schema.sql is not applied

Real behaviour:

  • it fails because of author is NULL :white_check_mark:
  • 0001_initial_schema.sql is APPLIED :x:

So, there is no row in databasechangelog, but sql script is applied and I have changes in database without any note in databasechangelog. It’s not obvious.

  1. It looks like a bug, ain’t it?
  2. Can I prevent applying an sql script if an inserting changelog in database fails?

Hi @ilya7cc I would add an issue into our github repo.

And thanks for joining our community!