activity: add recipients_to and recipients_cc fields
This commit is contained in:
parent
0fd2eaf7af
commit
81673b8136
3 changed files with 31 additions and 5 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue