Redgate Flyway

For PostgreSQL users - where are your DBs hosted?

Flyway Prepare Source Setting

Description

The source to use for the prepare operation.

Type

String

Valid values

  • "<<env>>" - uses the environment named <<env>>
  • "schemaModel" - the schema model folder referenced by schemaModelLocation

In the case where an environment shares a name with one of the other values, it can be prefixed with env:

Default

none - if prepare.source or prepare.target are not set the prepare command will run against a diff artifact

Usage

Flyway Desktop

This can't be added to a configuration file via Flyway Desktop.

Command-line

./flyway prepare -source="schemaModel" -target="production"

TOML Configuration File

[flyway.prepare]
source = "schemaModel"

Didn't find what you were looking for?