documentation/Reference/Commands/Baseline.md
Baselines an existing database, excluding all migrations up to and including baselineVersion.
See Baselines for more information.
flyway baseline
mvn flyway:baseline
gradle flywayBaseline
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:
It is also possible to set environment settings as parameters.
All parameters are optional, although a target environment must be configured or passed in.
{
"successfullyBaselined": true,
"baselineVersion": "1",
"flywayVersion": "{{ site.flywayVersion }}",
"database": "testdb",
"warnings": [],
"operation": "baseline"
}
This command can produce the following error codes: