Locations

Description

Comma-separated list of locations to scan recursively for migrations. The location type is determined by its prefix.

Classpath

Unprefixed locations or locations starting with classpath: point to a package on the classpath and may contain both SQL and Java-based migrations. You must ensure the package is available on the classpath ( see Adding to the classpath).

Filesystem

Locations starting with filesystem: point to a directory on the filesystem, may only contain SQL migrations and are only scanned recursively down non-hidden directories.

Default

classpath:db/migration

Usage

Command line

./migratedb -locations="filesystem:./sql" info

Configuration File

migratedb.locations=filesystem:./sql

Environment Variable

MIGRATEDB_LOCATIONS=filesystem:./sql

API

MigrateDb.configure()
    .locations("filesystem:./sql")
    .load()