remove query timeouts
This commit is contained in:
parent
099f89367e
commit
945325013a
1 changed files with 8 additions and 6 deletions
|
@ -30,15 +30,17 @@ defmodule Mix.Tasks.Pleroma.Database do
|
||||||
|
|
||||||
Common.start_pleroma()
|
Common.start_pleroma()
|
||||||
|
|
||||||
Ecto.Adapters.SQL.query!(
|
Pleroma.Repo.query!(
|
||||||
Pleroma.Repo,
|
"update activities set data = jsonb_set(data, '{object}'::text[], data->'object'->'id') where data->'object'->>'id' is not null;",
|
||||||
"update activities set data = jsonb_set(data, '{object}'::text[], data->'object'->'id') where data->'object'->>'id' is not null;"
|
[],
|
||||||
|
timeout: :infinity
|
||||||
)
|
)
|
||||||
|
|
||||||
if Keyword.get(options, :vacuum) do
|
if Keyword.get(options, :vacuum) do
|
||||||
Ecto.Adapters.SQL.query!(
|
Pleroma.Repo.query!(
|
||||||
Pleroma.Repo,
|
"vacuum full;",
|
||||||
"vacuum full;"
|
[],
|
||||||
|
timeout: :infinity
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue