Redgate Flyway

Flyway Prepare Target Setting

Description

The target environment to deploy to. Must match the id of an environment specified in environments.

Type

String

Default

  • If prepare.source is set to schemaModel or migrations, this defaults to the value of the environment parameter.
  • Otherwise, there is no default value. It must be set when preparing from a source database, and should not be set if preparing from an 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]
target = "production"

Didn't find what you were looking for?