mirror of
https://github.com/valitydev/psql-migration.git
synced 2024-11-06 01:05:18 +00:00
Fix available migrations list snafu
This commit is contained in:
parent
b519e94dda
commit
17d6cea84d
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user