1
0
Fork 0
forked from AkkomaGang/akkoma
akkoma/priv/repo/migrations/20180516154905_create_user_trigram_index.exs
lain 1d4bbec6b3 Fix User search.
Now uses a trigram based search. This is a lot faster and gives better
results. Closes .
2018-05-16 17:55:20 +02:00

7 lines
213 B
Elixir

defmodule Pleroma.Repo.Migrations.CreateUserTrigramIndex do
use Ecto.Migration
def change do
create index(:users, ["(nickname || name) gist_trgm_ops"], name: :users_trigram_index, using: :gist)
end
end