SkipMissingChangelogsSpringLiquibase
See original GitHub issueWe have a big multi-module maven project, that each module is independent in terms of everything starting from Liquibase files to the database schema to entity, service, controller layers … etc. But at end of the day, we have one main module that includes all such files as :
### db.changelog-master.yaml
databaseChangeLog:
- include:
file: classpath:db/changelog/module1.xml
- include:
file: classpath:db/changelog/module2.xml
.......
.......
The point is, in development-time, the developer doesn’t need to load all modules (each module is a maven profile, so one can exclude modules easily by just enabling/disabling profiles belonging to his own module)
Everything goes fine until we started the app, and Liquibase starts to complain about missing Liquibase configuration files. 😢
So to fix the issue we have to add our own SkipMissingChangelogsSpringLiquibase.java and use it to configure spring Liquibase bean.
We wished that time such a tolerated mechanism exists as part of Liquibase in order not to “hack” it.
So My question here is can we have this Code part of Liquibase so as to minimize the customization we (and maybe others) doing? (I can submit the PR 😉 )
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
@kataggart
Here’s a Draft PR https://github.com/liquibase/liquibase/pull/3081
Please note that the old behavior of throwing exceptions when the file is not found will be broken… (see the below screenshot)
If you approve the new behavior, I can put more effort into the PR and fix the test cases…
what do you think?
glad to hear that. once I have some free time, I will work on sending a PR.
thanks.