Collin Peters
Collin Peters

Reputation: 4643

Does Flyway have any way of including or excluding scripts?

In Flyway is there any way to mark certain scripts for inclusion or exclusion? What I am looking for is something similar to Liquibase's 'contexts' feature, or Dbmaintains 'qualifiers'. My primary use case is the test one that is outlined on the Liquibase site, a 'test' context where only scripts that are related to test data will run.

Upvotes: 2

Views: 2639

Answers (1)

Axel Fontaine
Axel Fontaine

Reputation: 35169

Yes. Put those test scripts in a second folder, and selectively configure flyway.locations to include it.

Upvotes: 4

Related Questions