Drop extension when rolling back all PGroonga migrations

This commit is contained in:
itepechi 2023-11-02 06:19:00 +09:00
parent 8376ca1dda
commit ecc8f28fc0
1 changed files with 2 additions and 0 deletions

View File

@ -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,