mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-09-08 20:58:28 +00:00
13 lines
343 B
Elixir
13 lines
343 B
Elixir
defmodule Pleroma.Repo.Migrations.ActivitiesAddToCcIndices do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
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
|