2018-08-29 13:38:51 -05:00
|
|
|
defmodule Pleroma.Repo.Migrations.RemoveRecipientsToAndCcFieldsFromActivities do
|
|
|
|
use Ecto.Migration
|
|
|
|
|
2019-06-30 20:08:07 -05:00
|
|
|
def up do
|
2018-08-29 13:38:51 -05:00
|
|
|
alter table(:activities) do
|
2019-10-08 07:16:39 -05:00
|
|
|
remove(:recipients_to)
|
|
|
|
remove(:recipients_cc)
|
2018-08-29 13:38:51 -05:00
|
|
|
end
|
|
|
|
end
|
2019-06-30 20:08:07 -05:00
|
|
|
|
|
|
|
def down do
|
|
|
|
alter table(:activities) do
|
2019-10-08 07:16:39 -05:00
|
|
|
add(:recipients_to, {:array, :string})
|
|
|
|
add(:recipients_cc, {:array, :string})
|
2019-06-30 20:08:07 -05:00
|
|
|
end
|
|
|
|
end
|
2018-08-29 13:38:51 -05:00
|
|
|
end
|