I don't know how to make both enviroments keep log in the same file..Any
suggestion?



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

> In models/migration.php:
>
> > @@ -30,19 +12,68 @@ protected static function migrate( $sql ) {
> >                  throw new MigrationException( $e );
> >              }
> >          }
> > -
> > -        public static function run( $sql ) {
> > +
> > +        public static function createLog( $name, $env ) {
> > +            $path = 'database/migration/.history';
> > +            if ( !$fh = fopen( $path, 'w' ) ) {
> > +                throw new ModelNotFoundException();
> > +            }
> > +            fwrite( $fh, "$env: $name\n" );
>
> This overwrites all other environments. Please regression test that
> multiple environments maintain a separate history.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/dionyziz/endofcodes/pull/147/files#r10859027>
> .
>