move to 2.5.5
[anni] / priv / repo / migrations / 20180829183529_remove_recipients_to_and_cc_fields_from_activities.exs
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
5 defmodule Pleroma.Repo.Migrations.RemoveRecipientsToAndCcFieldsFromActivities do
6   use Ecto.Migration
7
8   def up do
9     alter table(:activities) do
10       remove(:recipients_to)
11       remove(:recipients_cc)
12     end
13   end
14
15   def down do
16     alter table(:activities) do
17       add(:recipients_to, {:array, :string})
18       add(:recipients_cc, {:array, :string})
19     end
20   end
21 end