31133845a0de0ef7b07f7d815f4301f86c6ec0c7
[anni] / priv / repo / migrations / 20210121080964_add_default_text_search_config.exs
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Repo.Migrations.AddDefaultTextSearchConfig do
6   use Ecto.Migration
7
8   def change do
9     execute("DO $$
10     BEGIN
11     execute 'ALTER DATABASE \"'||current_database()||'\" SET default_text_search_config = ''english'' ';
12     END
13     $$;")
14   end
15 end