1
0
Fork 0
forked from mirrors/akkoma
akkoma/priv/repo/migrations/20180829182612_activities_add_to_cc_indices.exs

9 lines
316 B
Elixir
Raw Normal View History

defmodule Pleroma.Repo.Migrations.ActivitiesAddToCcIndices do
use Ecto.Migration
def change do
2019-07-01 02:08:07 +01:00
create_if_not_exists index(:activities, ["(data->'to')"], name: :activities_to_index, using: :gin)
create_if_not_exists index(:activities, ["(data->'cc')"], name: :activities_cc_index, using: :gin)
end
end