Skip to content

Commit 01552eb

Browse files
authored
Sort migration files before execution (#158)
1 parent c1b60b4 commit 01552eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongo/migration.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ defmodule Mongo.Migration do
118118

119119
defp migration_files!() do
120120
case File.ls(migration_file_path()) do
121-
{:ok, files} -> files
121+
{:ok, files} -> Enum.sort(files)
122122
{:error, _} -> raise "Could not find migrations file path"
123123
end
124124
end

0 commit comments

Comments
 (0)