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