Add option to modify HTTP pool size
[akkoma] / priv / repo / migrations / 20200708193702_drop_user_trigram_index.exs
1 defmodule Pleroma.Repo.Migrations.DropUserTrigramIndex do
2 @moduledoc "Drops unused trigram index on `users` (FTS index is being used instead)"
3
4 use Ecto.Migration
5
6 def up do
7 drop_if_exists(index(:users, [], name: :users_trigram_index))
8 end
9
10 def down do
11 create_if_not_exists(
12 index(:users, ["(trim(nickname || ' ' || coalesce(name, ''))) gist_trgm_ops"],
13 name: :users_trigram_index,
14 using: :gist
15 )
16 )
17 end
18 end