documentation/Reference/Script Configuration/Should Execute.md
{% include teams.html %}
shouldExecute is a script configuration option that lets you define when a migration should execute.
This consists of an expression which evaluates to a Boolean value. Flyway will change behavior for this migration depending on the expression evaluation:
This evaluation will be reflected in the migration state for all flyway commands, such as the info command.
Unlike skipExecutingMigrations, this will not update the schema history table when a script is not executed.
true or false<A>==<B> or <A>!=<B> where <A> and <B> are placeholders or literal values.&& (AND), || (OR) and parentheses ( )true
shouldExecute=${flyway:defaultSchema}==A