mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 05:23:18 +12:00
fix: properly parse previous version from migration generation
This commit is contained in:
parent
9e2c01693f
commit
2421e6fc2c
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ defmodule AshPostgres.MigrationGenerator do
|
|||
{ext_name, _version, up_fn, _down_fn} when is_function(up_fn, 1) ->
|
||||
current_version =
|
||||
Enum.find_value(extensions_snapshot[:installed] || [], 0, fn name ->
|
||||
with ["", "v" <> version] <- String.split(name, to_string(ext_name)),
|
||||
with ["", "_v" <> version] <- String.split(name, to_string(ext_name)),
|
||||
{integer, ""} <- Integer.parse(version) do
|
||||
integer
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue