Back to Flyway

Flyway Check Next Snapshot Setting

documentation/Reference/Configuration/Flyway Namespace/Flyway Check Namespace/Flyway Check Next Snapshot Setting.md

latest1.4 KB
Original Source

{% include enterprise.html %}

Description

A snapshot containing all migrations including those that are pending (generated via snapshot) The location type is determined by its prefix, and will be a file path if no prefix is specified.

Filesystem

Locations starting with <code>filesystem:</code> (or with no prefix) point to a file path on the filesystem. Relative paths will be resolved against your working directory.

Snapshot History table

Locations starting with <code>snapshotHistory:</code> point to the snapshot history table. They are in the format <code>snapshotHistory:<name></code>. For more information on the concept of the snapshot history table, see Snapshots.

Type

String

Default

<i>none</i>

Usage

Flyway Desktop

This can't be set in a config file via Flyway Desktop, although it will be honoured, and it can be configured as an advanced parameter in operations on the Migrations page.

Command-line

powershell
./flyway check -changes -url="jdbc://url" -nextSnapshot="my_snapshot"

TOML Configuration File

toml
[flyway.check]
nextSnapshot = "my_snapshot"

Configuration File

properties
flyway.check.nextSnapshot=my_snapshot