1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Repo.Migrations.DropUserTrigramIndex do
6 @moduledoc "Drops unused trigram index on `users` (FTS index is being used instead)"
11 drop_if_exists(index(:users, [], name: :users_trigram_index))
16 index(:users, ["(trim(nickname || ' ' || coalesce(name, ''))) gist_trgm_ops"],
17 name: :users_trigram_index,