Interface MigrationInfoService

All Known Implementing Classes:
MigrationInfoServiceImpl

public interface MigrationInfoService
Info about all migrations, including applied, current and pending with details and status.
  • Method Details

    • all

      MigrationInfo[] all()
      Returns:
      The full set of info about applied, current and future migrations. An empty array if none.
    • current

      MigrationInfo current()
      Returns:
      Information about the current applied migration or null if no migrations have been applied yet.
    • next

      Returns:
      The next pending migration or null if no migration is pending. This will be the first outdated repeatable migration if no pending versioned migration exists.
    • pending

      MigrationInfo[] pending()
      Returns:
      All pending migrations, available locally, but not yet applied to the DB, ordered by version. An empty array if none.
    • applied

      MigrationInfo[] applied()
      Returns:
      All applied migrations. An empty array if none.
    • resolved

      MigrationInfo[] resolved()
      Returns:
      All resolved migrations. An empty array if none.
    • failed

      MigrationInfo[] failed()
      Returns:
      The failed migrations. An empty array if none.
    • future

      MigrationInfo[] future()
      Returns:
      The future migrations. An empty array if none.
    • outOfOrder

      MigrationInfo[] outOfOrder()
      Returns:
      The out of order migrations. An empty array if none.
    • outdated

      MigrationInfo[] outdated()
      Returns:
      All outdated repeatable migrations. An empty array if none.
    • getInfoResult

      InfoResult getInfoResult()