logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

20180829082446_add_recipients_to_and_cc_fields_to_activities.exs (566B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Repo.Migrations.AddRecipientsToAndCcFieldsToActivities do
  5. use Ecto.Migration
  6. def change do
  7. alter table(:activities) do
  8. add(:recipients_to, {:array, :string})
  9. add(:recipients_cc, {:array, :string})
  10. end
  11. create_if_not_exists(index(:activities, [:recipients_to], using: :gin))
  12. create_if_not_exists(index(:activities, [:recipients_cc], using: :gin))
  13. end
  14. end