mojolicious / mojo-pg

Mojolicious :heart: PostgreSQL
https://metacpan.org/release/Mojo-Pg
Artistic License 2.0
101 stars 46 forks source link

moar fixxsz #6

Closed hernan604 closed 9 years ago

hernan604 commented 9 years ago

in Mojo::Pg::Migrations::migrate there are 2 other potential sort errors, they are: my @up = grep { $ <= $target && $ > $active } sort { $a <=> $b } keys %$up

my @down = grep { $ > $target && $ <= $active } reverse sort { $a <=> $b } keys %$down

my suggestion is to add { $a <=> $b } as in example.

kraih commented 9 years ago

It would help a lot if you tried making your tests more minimal. A more informative title would also make searching for issues a lot easier in the future.