Merge branch 'fix/tag-timeline-missing-index' into 'develop'

Add missing tag index on objects

Closes #867

See merge request pleroma/pleroma!1241
This commit is contained in:
lambda 2019-06-03 19:03:35 +00:00
commit 662e95e948

View File

@ -0,0 +1,8 @@
defmodule Pleroma.Repo.Migrations.AddTagIndexToObjects do
use Ecto.Migration
def change do
drop_if_exists index(:activities, ["(data #> '{\"object\",\"tag\"}')"], using: :gin, name: :activities_tags)
create index(:objects, ["(data->'tag')"], using: :gin, name: :objects_tags)
end
end