Package org.flywaydb.core.api
Interface MigrationInfo
-
- All Superinterfaces:
Comparable<MigrationInfo>
public interface MigrationInfo extends Comparable<MigrationInfo>
Info about a migration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IntegergetChecksum()StringgetDescription()IntegergetExecutionTime()StringgetInstalledBy()DategetInstalledOn()IntegergetInstalledRank()StringgetScript()MigrationStategetState()MigrationTypegetType()MigrationVersiongetVersion()-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
getType
MigrationType getType()
- Returns:
- The type of migration (BASELINE, SQL, JDBC, ...)
-
getChecksum
Integer getChecksum()
- Returns:
- The target version of this migration.
-
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)
-
-