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.AddTrigramExtension do
10 Logger.warning("ATTENTION ATTENTION ATTENTION\n")
13 "This will try to create the pg_trgm extension on your database. If your database user does NOT have the necessary rights, you will have to do it manually and re-run the migrations.\nYou can probably do this by running the following:\n"
17 "sudo -u postgres psql pleroma_dev -c \"create extension if not exists pg_trgm\"\n"
20 execute("create extension if not exists pg_trgm")
24 execute("drop extension if exists pg_trgm")