Package org.flywaydb.core.api.resolver
Interface ResolvedMigration
- All Known Implementing Classes:
BaselineResolvedMigration,org.flywaydb.core.internal.resolver.ResolvedMigrationImpl
public interface ResolvedMigration
Migration resolved through a MigrationResolver. Can be applied against a database.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanbooleanchecksumMatches(Integer checksum) booleanchecksumMatchesWithoutBeingIdentical(Integer checksum) default MigrationStategetState(org.flywaydb.core.internal.info.MigrationInfoContext context) org.flywaydb.core.extensibility.MigrationTypegetType()default boolean
-
Method Details
-
getVersion
MigrationVersion getVersion()- Returns:
- The version of the database after applying this migration.
nullfor repeatable migrations.
-
isVersioned
default boolean isVersioned() -
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
Integer getChecksum()- Returns:
- The checksum of the migration. Optional. Can be
nullif not unique checksum is computable.
-
getType
org.flywaydb.core.extensibility.MigrationType getType()- Returns:
- The type of migration (INIT, SQL, ...)
-
getPhysicalLocation
String getPhysicalLocation()- Returns:
- The physical location of the migration on disk. Used for more precise error reporting in case of conflict.
-
getExecutor
MigrationExecutor getExecutor()- Returns:
- The executor to run this migration.
-
getState
-
canCompareWith
-
checksumMatches
-
checksumMatchesWithoutBeingIdentical
-