Want more control over your database deployments? – Find out how with Carlos Robles at Redgate Summit Register now

Flyway Documentation

URL

Description

The jdbc url to use to connect to the database.

Note: Only certain jdbc drivers are packaged with flyway. If your driver is not packaged, then you need to ensure it is available on the classpath (see Adding to the classpath).

Usage

Commandline

./flyway -url=jdbc:h2:mem:flyway_db info

Configuration File

flyway.url=jdbc:h2:mem:flyway_db

Environment Variable

FLYWAY_URL=jdbc:h2:mem:flyway_db

API

Flyway.configure()
    .url("jdbc:h2:mem:flyway_db")
    .load()

Gradle

flyway {
    url = 'jdbc:h2:mem:flyway_db'
}

Maven

<configuration>
    <url>jdbc:h2:file:./target/foobar</url>
</configuration>