Redgate Summit – The Database DevOps Transformation Watch now
PASS Data Community Summit logo

PASS Data Community Summit

A hybrid conference in Seattle and online

15-18 November

Flyway Documentation

This documentation is deprecated. The new documentation can now be found on documentation.red-gate.com

Poll

Driver

Description

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

This must match the driver for the database type in the url you are using.

If you use a driver class that is not shipped with Flyway, you must ensure that it is available on the classpath (see Adding to the classpath).

Default

Auto-detected based on the url

Usage

Commandline

./flyway -driver=com.microsoft.sqlserver.jdbc.SQLServerDriver info

Configuration File

flyway.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver

Environment Variable

FLYWAY_DRIVER=com.microsoft.sqlserver.jdbc.SQLServerDriver

API

Flyway.configure()
    .driver("com.microsoft.sqlserver.jdbc.SQLServerDriver")
    .load()

Gradle

flyway {
    driver = 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
}

Maven

<configuration>
    <driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver>
</configuration>