forked from AkkomaGang/akkoma
Add GIN index on object data->'name'
This commit is contained in:
parent
63b0b7190c
commit
10ca1f91de
1 changed files with 7 additions and 0 deletions
|
@ -0,0 +1,7 @@
|
||||||
|
defmodule Pleroma.Repo.Migrations.AddObjectIndexOnName do
|
||||||
|
use Ecto.Migration
|
||||||
|
|
||||||
|
def change do
|
||||||
|
create(index(:objects, ["(data->'name')"], name: :objects_name_index, using: :gin))
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue