aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-04-18 23:58:59 +0300
committerrinpatch <rinpatch@sdf.org>2019-04-18 23:58:59 +0300
commit945325013af6dde3f1da2417753bb97f55911a84 (patch)
tree6175965add60f804f7ca9db3936714386ae3c50d
parent099f89367efaf4032b8e937258b2c1a90f16b047 (diff)
downloadpleroma-945325013af6dde3f1da2417753bb97f55911a84.tar.gz
remove query timeouts
-rw-r--r--lib/mix/tasks/pleroma/database.ex14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/mix/tasks/pleroma/database.ex b/lib/mix/tasks/pleroma/database.ex
index ce3252af5..d657c1ef0 100644
--- a/lib/mix/tasks/pleroma/database.ex
+++ b/lib/mix/tasks/pleroma/database.ex
@@ -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