Interface MigrationInfoService


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

      Modifier and Type Method Description
      MigrationInfo[] all()
      Retrieves the full set of infos about applied, current and future migrations.
      MigrationInfo[] applied()
      Retrieves the full set of infos about the migrations applied to the DB.
      MigrationInfo current()
      Retrieves the information of the current applied migration, if any.
      org.flywaydb.core.internal.output.InfoOutput getInfoOutput()  
      MigrationInfo[] pending()
      Retrieves the full set of infos about pending migrations, available locally, but not yet applied to the DB.
    • Method Detail

      • all

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

        MigrationInfo current()
        Retrieves the information of the current applied migration, if any.
        Returns:
        The info. null if no migrations have been applied yet.
      • pending

        MigrationInfo[] pending()
        Retrieves the full set of infos about pending migrations, available locally, but not yet applied to the DB.
        Returns:
        The pending migrations. An empty array if none.
      • applied

        MigrationInfo[] applied()
        Retrieves the full set of infos about the migrations applied to the DB.
        Returns:
        The applied migrations. An empty array if none.
      • getInfoOutput

        org.flywaydb.core.internal.output.InfoOutput getInfoOutput()