2018-08-29 20:38:51 +02:00
|
|
|
defmodule Pleroma.Repo.Migrations.ActivitiesAddToCcIndices do
|
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def change do
|
2019-10-08 14:16:39 +02: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)
|
|
|
|
)
|
2018-08-29 20:38:51 +02:00
|
|
|
end
|
|
|
|
end
|