Redgate Flyway

Baseline

Description

Baselines an existing database, excluding all migrations up to and including baselineVersion.

See Baselines for more information.

Usage examples

Baseline via command line

flyway baseline

Baseline via Maven

mvn flyway:baseline

Baseline via Gradle

gradle flywayBaseline

Parameters

Universal commandline parameters are listed here.

All relevant configuration settings are listed here. The settings from these sections can be set as parameters on the baseline command:

  • General settings
  • Flyway schema history settings
  • Baseline settings
  • Settings in database-specific namespaces
  • Settings in secrets management namespaces

It is also possible to set environment settings as parameters.

All parameters are optional, although a target environment must be configured or passed in.

JSON output format

{
  "successfullyBaselined": true,
  "baselineVersion": "1",
  "flywayVersion": "11.3.2",
  "database": "testdb",
  "warnings": [],
  "operation": "baseline"
}

Didn't find what you were looking for?