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.

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

Configuration File

migratedb.locations=filesystem:./sql

API

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