private List < MigrationInfo > future ( MigrationInfo [ ] migrationInfos ) { if ( migrationInfos . length == 0 ) throw new NotFoundException ( ) ; List < MigrationInfo > futureMigrations = Lists . newArrayList ( ) ; for ( MigrationInfo migrationInfo : migrationInfos ) { if ( ( migrationInfo . getState ( ) == MigrationState . FUTURE_SUCCESS ) || ( migrationInfo . getState ( ) == MigrationState . FUTURE_FAILED ) ) { futureMigrations . add ( migrationInfo ) ; } } return futureMigrations ; }
Retrieves the full set of infos about future migrations applied to the DB .