This commit is contained in:
lain 2020-11-20 16:38:05 +01:00
parent 25a03a9b5b
commit e4289792d2

View file

@ -116,7 +116,7 @@ def start(_type, _args) do
result result
end end
defp set_postgres_server_version() do defp set_postgres_server_version do
version = version =
with %{rows: [[version]]} <- Ecto.Adapters.SQL.query!(Pleroma.Repo, "show server_version"), with %{rows: [[version]]} <- Ecto.Adapters.SQL.query!(Pleroma.Repo, "show server_version"),
{num, _} <- Float.parse(version) do {num, _} <- Float.parse(version) do