line |
true |
false |
branch |
32
|
32 |
42 |
if $line =~ /^\s*--\s*(\d+)\s*(up|down)/iu |
33
|
74 |
0 |
if $version |
40
|
4 |
30 |
unless (sort {$a <=> $b;} keys %{(shift())->{"migrations"}{"up"};})[-1] |
50
|
1 |
24 |
if $target != 0 and not $up->{$target} |
54
|
2 |
22 |
if $self->_active($db, 0) == $target |
58
|
0 |
22 |
if (my $active = $self->_active($db, 1)) == $target |
61
|
2 |
20 |
if $active > $latest |
75
|
1 |
19 |
unless eval {
do {
$result = $db->dbh->do($query);
1
}
} |
76
|
1 |
19 |
if $errored |
82
|
1 |
19 |
if $errored |
83
|
0 |
19 |
unless defined $result |
85
|
19 |
0 |
if $db->query("update mojo_migrations set version = ? where name = ?", $target, $self->name) |
96
|
13 |
12 |
if ($from < $to) |
97
|
30 |
5 |
if $_ <= $to |
102
|
19 |
6 |
if $_ > $to |
116
|
64 |
5 |
$results ? : |
117
|
62 |
7 |
if ($next or not $create) |
120
|
1 |
6 |
if not $results or $results->sth->err |