Package migratedb.v1.core.api.resolver
Interface ResolvedMigration
-
- All Known Implementing Classes:
ResolvedMigrationImpl
public interface ResolvedMigrationMigration resolved through a MigrationResolver. Can be applied against a database.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanchecksumMatches(Checksum checksum)ChecksumgetChecksum()StringgetDescription()MigrationExecutorgetExecutor()StringgetLocationDescription()StringgetScript()MigrationTypegetType()VersiongetVersion()default booleanisRepeatable()
-
-
-
Method Detail
-
getVersion
Version getVersion()
- Returns:
- The version of the database after applying this migration,
nullfor repeatable migrations.
-
isRepeatable
default boolean isRepeatable()
- Returns:
- Whether this is a repeatable migration.
-
getDescription
String getDescription()
- Returns:
- The description of the migration.
-
getScript
String getScript()
- Returns:
- The name of the script to execute for this migration, relative to its base (classpath/filesystem) location.
-
getChecksum
Checksum getChecksum()
- Returns:
- The checksum of the migration. Optional. Can be
nullif no unique checksum is computable.
-
getType
MigrationType getType()
- Returns:
- The type of migration (INIT, SQL, ...)
-
getLocationDescription
String getLocationDescription()
- Returns:
- Description of the location of the migration (on disk, if possible). Used for more precise error reporting in case of conflict.
-
getExecutor
MigrationExecutor getExecutor()
- Returns:
- The executor to run this migration.
-
checksumMatches
boolean checksumMatches(Checksum checksum)
-
-