aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaniini <nenolod@gmail.com>2019-06-04 05:38:13 +0000
committerkaniini <nenolod@gmail.com>2019-06-04 05:38:13 +0000
commit94d12a79c40228aec38cf1cd608575247921cdf9 (patch)
treee358de3b8ec34a05c9881dcc05b2808f919ce075
parent662e95e9484a46bfc72c2edc305aefae99ff68b0 (diff)
parentbe56801ddab84d9e21af75c7752e5898fe0dbecb (diff)
downloadpleroma-94d12a79c40228aec38cf1cd608575247921cdf9.tar.gz
Merge branch 'hotfix/add-in_reply_to_index' into 'develop'
Add index on inReplyTo for objects See merge request pleroma/pleroma!1240
-rw-r--r--priv/repo/migrations/20190603162018_add_object_in_reply_to_index.exs7
1 files changed, 7 insertions, 0 deletions
diff --git a/priv/repo/migrations/20190603162018_add_object_in_reply_to_index.exs b/priv/repo/migrations/20190603162018_add_object_in_reply_to_index.exs
new file mode 100644
index 000000000..df4ac7782
--- /dev/null
+++ b/priv/repo/migrations/20190603162018_add_object_in_reply_to_index.exs
@@ -0,0 +1,7 @@
+defmodule Pleroma.Repo.Migrations.AddObjectInReplyToIndex do
+ use Ecto.Migration
+
+ def change do
+ create index(:objects, ["(data->>'inReplyTo')"], name: :objects_in_reply_to_index)
+ end
+end