Rules Location

Check: Rules Location

Flyway Enterprise

This is available in Flyway CLI only

Description

It is possible to change where Flyway looks for rules (for example if you keep them separately under configuration management) and this is done by setting the rulesLocation parameter.

Be aware that this is will be the only place Flyway looks for rules so if you want to use the Redgate supplied ones then you'll need to copy them from the /rules folder to the new location.

also see:

Note: Flyway will only look in the default or specified locations for rules and won't traverse sub-folders.

Default

By default, the rules are located in the /rules folder of your flyway release

Usage

Commandline

./flyway check -code -check.rulesLocation=/my_rules_folder

TOML Configuration File

[flyway.check]
rulesLocation = "/my_rules_folder"

Configuration File

flyway.check.rulesLocation=/my_rules_folder

Didn't find what you were looking for?