Get the most out of Flyway v7 - Sign up for our webinar on the Redgate Hub ▶ Watch now

Encoding

Description

The encoding of Sql migrations

Default

UTF-8

Usage

Commandline

./flyway -encoding="UTF-16" info

Configuration File

flyway.encoding=UTF-16

Environment Variable

FLYWAY_ENCODING=UTF-16

API

Flyway.configure()
    .encoding("UTF-16")
    .load()

Gradle

flyway {
    encoding = 'UTF-16'
}

Maven

<configuration>
    <encoding>UTF-16</encoding>
</configuration>