Reputation: 31
I was facing problem in including multiple scripts in different sub directories and execute them on same data base using Spring boot 2.1.6.
Upvotes: 0
Views: 1509
Reputation: 31
In my db.changelog-master.yaml I have included following code, that solved my problem.
databaseChangeLog:
- includeAll:
path: db/changelog/changes/
- includeAll:
path: db/changelog/changes/specific/
- includeAll:
path: db/changelog/changes/specific/more/
And my sql scripts directories are of below structure:
db/changelog/changes/
db/changelog/changes/specific/
db/changelog/changes/specific/more/
Upvotes: 3