Closed hernan604 closed 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.
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.
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.