From ecc8f28fc0e06284e55164d54557e8da1b978491 Mon Sep 17 00:00:00 2001 From: itepechi <72330683+itepechi@users.noreply.github.com> Date: Thu, 2 Nov 2023 06:19:00 +0900 Subject: [PATCH] Drop extension when rolling back all PGroonga migrations --- .../pgroonga/20230802195431_create_pgroonga_index.exs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/priv/repo/optional_migrations/pgroonga/20230802195431_create_pgroonga_index.exs b/priv/repo/optional_migrations/pgroonga/20230802195431_create_pgroonga_index.exs index 040fe96c1..85426af01 100644 --- a/priv/repo/optional_migrations/pgroonga/20230802195431_create_pgroonga_index.exs +++ b/priv/repo/optional_migrations/pgroonga/20230802195431_create_pgroonga_index.exs @@ -19,6 +19,8 @@ defmodule Pleroma.Repo.Migrations.CreatePgroongaIndex do def down do execute("DROP INDEX IF EXISTS object_content_pgroonga") + execute("DROP EXTENSION IF EXISTS pgroonga") + create_if_not_exists( index(:objects, ["(to_tsvector('english', data->>'content'))"], using: :gin,