pleroma/priv/repo/migrations/20220225164000_add_activity_assigned_account_index.exs

10 lines
249 B
Elixir
Raw Normal View History

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