Hidayathulla Khan
Hidayathulla Khan

Reputation: 31

Liquibase multiple includeAll statements

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

Answers (1)

Hidayathulla Khan
Hidayathulla Khan

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

Related Questions