The default schema managed by Flyway. This schema will be the one containing the schema history table.
This schema will also be the default for the database connection (provided the database supports this concept).
If schemas is specified, the first schema in that list.
./flyway -defaultSchema="schema2" info
flyway.defaultSchema=schema2
FLYWAY_DEFAULT_SCHEMA=schema2
Flyway.configure()
.defaultSchema("schema2")
.load()
flyway {
defaultSchema = 'schema2'
}
<configuration>
<defaultSchema>schema2</defaultSchema>
</configuration>