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:
commit
662e95e948
@ -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
|
Loading…
Reference in New Issue
Block a user