Skip to content
Snippets Groups Projects
Commit 94532501 authored by rinpatch's avatar rinpatch
Browse files

remove query timeouts

parent 099f8936
No related branches found
No related tags found
No related merge requests found
......@@ -30,15 +30,17 @@ defmodule Mix.Tasks.Pleroma.Database do
Common.start_pleroma()
Ecto.Adapters.SQL.query!(
Pleroma.Repo,
"update activities set data = jsonb_set(data, '{object}'::text[], data->'object'->'id') where data->'object'->>'id' is not null;"
Pleroma.Repo.query!(
"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
Ecto.Adapters.SQL.query!(
Pleroma.Repo,
"vacuum full;"
Pleroma.Repo.query!(
"vacuum full;",
[],
timeout: :infinity
)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment