I have an application that runs against a postgres database.
For my devops pipepines I attempted to create a docker image and get it deployed. The deployed version does not start due Liquibase trying to recreate existing tables.
Liquibase uses the path to the migration files as the key to identify if they should be executed or not. The path can differ depending on how the application is started.
The issue is exactly as described here How to alter databasechangelog.filename for Spring Boot and Liquibase? - Stack Overflow
The proposed solution would be to include logicalFilePath to decouple it from the physical file path. This is currently not part of the generated Liquibase files and would require changing all existing files.
I found a post on liquibase forum from just a few days ago that discusses the topic.
For now I can continue since it should be a separate db anyway, but sometimes it is useful to be able to debug against an existing database in early development.