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
- 0001_initial_schema.sql is APPLIED
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.
- It looks like a bug, ain’t it?
- Can I prevent applying an sql script if an inserting changelog in database fails?