Package org.flywaydb.core.api
Interface MigrationInfoService
-
public interface MigrationInfoServiceInfo about all migrations, including applied, current and pending with details and status.
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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.MigrationInfocurrent()Retrieves the information of the current applied migration, if any.InfoResultgetInfoResult()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.
nullif 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.
-
getInfoResult
InfoResult getInfoResult()
-
-