Interface MigrationChain.Element

Enclosing interface:
MigrationChain

public static interface MigrationChain.Element
A chain element describing a pending or applied migration.
  • Method Details

    • getState

      MigrationState getState()
      Returns:
      State of this migration.
    • getType

      MigrationType getType()
      Returns:
      The type of the migration.
    • getChecksum

      Optional<String> getChecksum()
      Returns:
      The checksum of this migration if available.
    • getVersion

      String getVersion()
      Returns:
      The schema version after the migration is complete.
    • getDescription

      @Deprecated String getDescription()
      Deprecated.
      Since 1.9.0 see getOptionalDescription()
      Returns:
      The description of the migration.
    • getOptionalDescription

      default Optional<String> getOptionalDescription()
      Returns:
      An optional description of the migration represented by this element.
      Since:
      1.9.0
    • getSource

      String getSource()
      Returns:
      The name of the script or class on which this migration is based.
    • getInstalledOn

      Optional<ZonedDateTime> getInstalledOn()
      Returns:
      The timestamp when this migration was installed. (Only for applied migrations)
    • getInstalledBy

      Optional<String> getInstalledBy()
      Returns:
      The user that installed this migration. (Only for applied migrations)
    • getExecutionTime

      Optional<Duration> getExecutionTime()
      Returns:
      The execution time of this migration. (Only for applied migrations)