Schemas

Description

Comma-separated, case-sensitive list of schemas managed by MigrateDB.

MigrateDB will attempt to create these schemas if they do not already exist, and will clean them in the order of this list. If MigrateDB created them, then the schemas themselves will be dropped when cleaning.

If defaultSchema is not specified, the first schema in this list also acts as the default schema, which is where the schema history table will be placed.

Usage

Command line

./migratedb -schemas="schema1,schema2" info

Configuration File

migratedb.schemas=schema1,schema2

Environment Variable

MIGRATEDB_SCHEMAS=schema1,schema2

API

MigrateDb.configure()
    .schemas("schema1","schema2")
    .load()