Ohhh I understood what you mean. Smart.


2014-03-16 12:16 GMT+02:00 Dionysis Zindros <notifications@github.com>:

> In models/migration/base.php:
>
> >                  throw $e;
> >              }
> > -            echo "Migration successful.\n";
> > +            $migrations = self::findAll();
> > +            $delete = true;
> > +            foreach( $migrations as $key => $migration ) {
> > +                if( $migration == $last || $delete ) {
> > +                    unset( $migrations[ $key ] );
> > +                    $delete = false;
> > +                }
> > +            }
>
> replace with array_search and array_slice?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/dionyziz/endofcodes/pull/147/files#r10638849>
> .
>