summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20180829183529_remove_recipients_to_and_cc_fields_from_activities.exs
blob: 6115f08c5698c3e7edbfc94c70010bc03d5f56bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Repo.Migrations.RemoveRecipientsToAndCcFieldsFromActivities do
  use Ecto.Migration

  def up do
    alter table(:activities) do
      remove(:recipients_to)
      remove(:recipients_cc)
    end
  end

  def down do
    alter table(:activities) do
      add(:recipients_to, {:array, :string})
      add(:recipients_cc, {:array, :string})
    end
  end
end