diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/App/BorgRestore/DB.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/App/BorgRestore/DB.pm b/lib/App/BorgRestore/DB.pm index 9a26493..62dc728 100644 --- a/lib/App/BorgRestore/DB.pm +++ b/lib/App/BorgRestore/DB.pm @@ -65,7 +65,7 @@ method _migrate() { }, }; - for my $target_version (keys %$schema) { + for my $target_version (sort { $a <=> $b } keys %$schema) { if ($version < $target_version) { $log->debugf("Migrating to schema version %s", $target_version); $self->{dbh}->begin_work(); |