diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-08-29 08:37:36 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-08-29 08:42:33 +0000 |
commit | 81673b81366ee1779802a9fec7f5119e664cd8ce (patch) | |
tree | 673d70b7b30e6b72ab4dbc0e36569098503c6f6d /priv/repo | |
parent | 0fd2eaf7afbbe557f56d4aa781f83fb8289316a1 (diff) | |
download | pleroma-81673b81366ee1779802a9fec7f5119e664cd8ce.tar.gz pleroma-81673b81366ee1779802a9fec7f5119e664cd8ce.zip |
activity: add recipients_to and recipients_cc fields
Diffstat (limited to 'priv/repo')
-rw-r--r-- | priv/repo/migrations/20180829082446_add_recipients_to_and_cc_fields_to_activities.exs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/priv/repo/migrations/20180829082446_add_recipients_to_and_cc_fields_to_activities.exs b/priv/repo/migrations/20180829082446_add_recipients_to_and_cc_fields_to_activities.exs new file mode 100644 index 000000000..96af412f0 --- /dev/null +++ b/priv/repo/migrations/20180829082446_add_recipients_to_and_cc_fields_to_activities.exs @@ -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 |