logo

pleroma

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

20180829183529_remove_recipients_to_and_cc_fields_from_activities.exs (533B)


  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.RemoveRecipientsToAndCcFieldsFromActivities do
  5. use Ecto.Migration
  6. def up do
  7. alter table(:activities) do
  8. remove(:recipients_to)
  9. remove(:recipients_cc)
  10. end
  11. end
  12. def down do
  13. alter table(:activities) do
  14. add(:recipients_to, {:array, :string})
  15. add(:recipients_cc, {:array, :string})
  16. end
  17. end
  18. end