mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 10:09:02 +00:00
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 a new issue