mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-09-09 05:08:25 +00:00
13 lines
407 B
Elixir
13 lines
407 B
Elixir
defmodule Pleroma.Repo.Migrations.AddRecipientsToAndCcFieldsToActivities do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
alter table(:activities) do
|
|
add(:recipients_to, {:array, :string})
|
|
add(:recipients_cc, {:array, :string})
|
|
end
|
|
|
|
create_if_not_exists(index(:activities, [:recipients_to], using: :gin))
|
|
create_if_not_exists(index(:activities, [:recipients_cc], using: :gin))
|
|
end
|
|
end
|