activity: add recipients_to and recipients_cc fields

This commit is contained in:
William Pitcock 2018-08-29 08:37:36 +00:00
commit 81673b8136
3 changed files with 31 additions and 5 deletions

View file

@ -0,0 +1,13 @@
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 index(:activities, [:recipients_to], using: :gin)
create index(:activities, [:recipients_cc], using: :gin)
end
end