Interface ResolvedMigration

All Known Implementing Classes:
ResolvedMigrationImpl

public interface ResolvedMigration
Migration resolved through a MigrationResolver. Can be applied against a database.
  • Method Details

    • getVersion

      Version getVersion()
      Returns:
      The version of the database after applying this migration, null for 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 null if 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)