Maven Goal: Baseline

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

Usage

> mvn flyway:baseline

Configuration

Parameter

Required

Default

Description

url

YES

The jdbc url to use to connect to the database

driver

NO

Auto-detected based on url

The fully qualified classname of the jdbc driver to use
to connect to the database

serverId

NO

flyway-db

The id of the server in the Maven settings.xml file to
load the credentials from.

This is an alternative to passing the credentials in
directly through properties.

user

NO

The user to use to connect to the database

password

NO

The password to use to connect to the database

schemas

NO

default schema of the connection

Case-sensitive list of schemas managed by Flyway.
The first schema will be the one containing the metadata table.

table

NO

schema_version

The name of Flyway's metadata table.By
default (single-schema mode) the metadata table is placed in the default schema for the connection
provided by the datasource.When the flyway.schemas property is set (multi-schema mode),
the metadata table is placed in the first schema of the list.

callbacks

NO

Fully qualified class names of
FlywayCallback
implementations to use to hook into the Flyway lifecycle.

skipDefaultCallbacks

NO

false

Whether default built-in callbacks (sql) should be skipped. If true, only custom callbacks are used.

baselineVersion

NO

1

The version to tag an existing schema with when executing baseline

baselineDescription

NO

<< Flyway Baseline >>

The description to tag an existing schema with when executing baseline

skip

NO

false

Skips the execution of the plugin for this module

configFile

NO

flyway.properties

Properties file from which to load the Flyway configuration. The names of the individual properties match the ones you would
use as Maven or System properties. The encoding of the file must be the same as the encoding defined with the
flyway.encoding property, which is UTF-8 by default. Relative paths are relative to the POM.