Fix available migrations list snafu

This commit is contained in:
Marc Nijdam 2020-01-15 11:42:06 -07:00
parent b519e94dda
commit 17d6cea84d
No known key found for this signature in database
GPG Key ID: 1C84AFC593B1B79D

View File

@ -254,7 +254,7 @@ if_ok(Error) -> {error, Error}.
available_migrations(Args) ->
Dir = target_dir(Args),
{ok, Files} = filelib:wildcard(filename:join(Dir, "*.sql")),
Files = filelib:wildcard(filename:join(Dir, "*.sql")),
lists:map(fun(Filename) ->
{ok, Migs} = eql:compile(filename:join([Dir, Filename])),
{filename:rootname(Filename), Migs}