pleroma/priv/repo/migrations/20210121080964_add_default_text_search_config.exs

12 lines
260 B
Elixir
Raw Normal View History

defmodule Pleroma.Repo.Migrations.AddDefaultTextSearchConfig do
use Ecto.Migration
def change do
execute("DO $$
BEGIN
execute 'ALTER DATABASE '||current_database()||' SET default_text_search_config = ''english'' ';
END
$$;")
end
end