summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20180829183529_remove_recipients_to_and_cc_fields_from_activities.exs
diff options
context:
space:
mode:
Diffstat (limited to 'priv/repo/migrations/20180829183529_remove_recipients_to_and_cc_fields_from_activities.exs')
-rw-r--r--priv/repo/migrations/20180829183529_remove_recipients_to_and_cc_fields_from_activities.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/priv/repo/migrations/20180829183529_remove_recipients_to_and_cc_fields_from_activities.exs b/priv/repo/migrations/20180829183529_remove_recipients_to_and_cc_fields_from_activities.exs
index 65576b8d5..8a6c67ee9 100644
--- a/priv/repo/migrations/20180829183529_remove_recipients_to_and_cc_fields_from_activities.exs
+++ b/priv/repo/migrations/20180829183529_remove_recipients_to_and_cc_fields_from_activities.exs
@@ -3,8 +3,8 @@ defmodule Pleroma.Repo.Migrations.RemoveRecipientsToAndCcFieldsFromActivities do
def up do
alter table(:activities) do
- remove(:recipients_to)
- remove(:recipients_cc)
+ remove_if_exists(:recipients_to, {:array, :string})
+ remove_if_exists(:recipients_cc, {:array, :string})
end
end