commit: 94d12a79c40228aec38cf1cd608575247921cdf9
parent 662e95e9484a46bfc72c2edc305aefae99ff68b0
Author: kaniini <nenolod@gmail.com>
Date: Tue, 4 Jun 2019 05:38:13 +0000
Merge branch 'hotfix/add-in_reply_to_index' into 'develop'
Add index on inReplyTo for objects
See merge request pleroma/pleroma!1240
Diffstat:
1 file 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
@@ -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