Drop extension when rolling back all PGroonga migrations
This commit is contained in:
parent
8376ca1dda
commit
ecc8f28fc0
|
@ -19,6 +19,8 @@ defmodule Pleroma.Repo.Migrations.CreatePgroongaIndex do
|
||||||
def down do
|
def down do
|
||||||
execute("DROP INDEX IF EXISTS object_content_pgroonga")
|
execute("DROP INDEX IF EXISTS object_content_pgroonga")
|
||||||
|
|
||||||
|
execute("DROP EXTENSION IF EXISTS pgroonga")
|
||||||
|
|
||||||
create_if_not_exists(
|
create_if_not_exists(
|
||||||
index(:objects, ["(to_tsvector('english', data->>'content'))"],
|
index(:objects, ["(to_tsvector('english', data->>'content'))"],
|
||||||
using: :gin,
|
using: :gin,
|
||||||
|
|
Loading…
Reference in New Issue