I haven't found the way to implement it the way you suggest.


2014-03-22 2:09 GMT+02:00 Dionysis Zindros <notifications@github.com>:

> In models/migration.php:
>
> >              }
> > -            catch ( MigrationException $e ) {
> > -                throw $e;
> > +            $migrations = self::findAll();
> > +            $position = array_search( trim( $last ), $migrations );
> > +            $ran = array_slice( $migrations, 0, $position + 1 );
> > +            return array_diff( $migrations, $ran );
>
> You can slice from $position to the end of the array and avoid array_diff.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/dionyziz/endofcodes/pull/147/files#r10859051>
> .
>