Package org.flywaydb.core.api
Interface MigrationInfo
- All Superinterfaces:
Comparable<MigrationInfo>
- All Known Subinterfaces:
LoadableMigrationInfo
Info about a migration.
-
Method Summary
Modifier and TypeMethodDescriptionintdefault Integerdefault Stringdefault org.flywaydb.core.extensibility.MigrationTypedefault Integerdefault Stringdefault org.flywaydb.core.extensibility.MigrationTypedefault StringgetState()org.flywaydb.core.extensibility.MigrationTypegetType()default booleandefault booleandefault booleandefault Booleandefault booleandefault booleandefault booleandefault booleanMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getType
org.flywaydb.core.extensibility.MigrationType getType()- Returns:
- The type of migration (BASELINE, SQL, JDBC, ...)
-
getChecksum
Integer getChecksum()- Returns:
- The target version of this migration.
-
isVersioned
default boolean isVersioned() -
getVersion
MigrationVersion getVersion()- Returns:
- The schema version after the migration is complete.
-
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 classpath or filesystem location.
-
getState
MigrationState getState()- Returns:
- The state of the migration (PENDING, SUCCESS, ...)
-
getInstalledOn
Date getInstalledOn()- Returns:
- The timestamp when this migration was installed. (Only for applied migrations)
-
getInstalledBy
String getInstalledBy()- Returns:
- The user that installed this migration. (Only for applied migrations)
-
getInstalledRank
Integer getInstalledRank()- Returns:
- The rank of this installed migration. This is the most precise way to sort applied migrations by installation order. Migrations that were applied later have a higher rank. (Only for applied migrations)
-
getExecutionTime
Integer getExecutionTime()- Returns:
- The execution time (in millis) of this migration. (Only for applied migrations)
-
getPhysicalLocation
String getPhysicalLocation()- Returns:
- The physical location of the migration on disk.
-
compareVersion
- Returns:
- The result between a comparison of these MigrationInfo's versions.
-
getShouldExecuteExpression
- Returns:
- The shouldExecute expression if present and supported by the migration type. Otherwise
null.
-
isShouldExecute
default boolean isShouldExecute() -
isRepeatable
default boolean isRepeatable() -
isChecksumMatching
default boolean isChecksumMatching() -
isDescriptionMatching
default boolean isDescriptionMatching() -
isTypeMatching
default boolean isTypeMatching() -
isPlaceholderReplacement
-
getResolvedChecksum
-
getAppliedChecksum
-
getResolvedDescription
-
getAppliedDescription
-
getResolvedType
default org.flywaydb.core.extensibility.MigrationType getResolvedType() -
getAppliedType
default org.flywaydb.core.extensibility.MigrationType getAppliedType() -
isApplied
default boolean isApplied()
-