Redgate Flyway

For PostgreSQL users - where are your DBs hosted?

Flyway Diff Source Setting

Description

The source to use for the diff operation.

Type

String

Valid values

  • "<<env>>" - uses the environment named <<env>>
  • "empty" - models an empty database
  • "schemaModel" - the schema model folder referenced by schemaModelLocation
  • "migrations" - uses a buildEnvironment to represent the state of database after specified migrations have been applied
  • "snapshot:<<path>>" - uses a snapshot file at the specified path

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

Default

none - this is a required parameter for the diff command

Usage

Flyway Desktop

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

Command-line

./flyway diff -source="env:development" -target="schemaModel"

TOML Configuration File

It is unlikely to be desirable to specify this in a config file, but it is possible:

[flyway.diff]
source = "env:development"

Didn't find what you were looking for?