pleroma/priv/repo/migrations/20220225164000_add_activity_assigned_account_index.exs
marcin mikołajczak c8fc411b77 Add index for assigned_account
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-25 17:15:46 +01:00

9 lines
249 B
Elixir

defmodule Pleroma.Repo.Migrations.AddActivityAssignedAccountIndex do
use Ecto.Migration
def change do
create_if_not_exists(
index(:activities, ["(data->>'assigned_account')"], name: :activities_assigned_account_index)
)
end
end