akkoma/priv/repo/migrations/20221211234352_remove_unused_indices.exs
FloatingGhost 9c71782861
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
Test removed HTTP adapter
2022-12-11 23:50:31 +00:00

11 lines
319 B
Elixir

defmodule Pleroma.Repo.Migrations.RemoveUnusedIndices do
use Ecto.Migration
def change do
drop_if_exists(
index(:activities, ["(data->>'actor')", "inserted_at desc"], name: :activities_actor_index)
)
drop_if_exists(index(:objects, ["(data->'tag')"], using: :gin, name: :objects_tags))
end
end