Redgate Flyway

For PostgreSQL users - where are your DBs hosted?

Flyway Create Schemas Setting

Description

Whether Flyway should attempt to create the schemas specified in the schemas property. See this page for more details

If Flyway automatically creates a schema, then the schemas themselves will be dropped when cleaning.

Type

String

Default

true

Usage

Flyway Desktop

This is not configurable from Flyway Desktop. This must be set to true for migration generation to work in Flyway Desktop.

Command-line

./flyway -createSchemas="false" info

TOML Configuration File

[flyway]
createSchemas = false

Configuration File

flyway.createSchemas=false

Environment Variable

FLYWAY_CREATE_SCHEMAS=false

API

Flyway.configure()
    .createSchemas(false)
    .load()

Gradle

flyway {
    createSchemas = false
}

Maven

<configuration>
    <createSchemas>false</createSchemas>
</configuration>

Didn't find what you were looking for?