projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'freebsd-docs' into 'develop'
[akkoma]
/
priv
/
repo
/
migrations
/
20180829183529_remove_recipients_to_and_cc_fields_from_activities.exs
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 ed4f5af302021c14455aef1374871afc216da607..65576b8d5cde7e53b2305f2f7cc977e6886c1ab9 100644
(file)
--- 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
@@
-1,10
+1,17
@@
defmodule Pleroma.Repo.Migrations.RemoveRecipientsToAndCcFieldsFromActivities do
use Ecto.Migration
defmodule Pleroma.Repo.Migrations.RemoveRecipientsToAndCcFieldsFromActivities do
use Ecto.Migration
- def
change
do
+ def
up
do
alter table(:activities) do
alter table(:activities) do
- remove :recipients_to
- remove :recipients_cc
+ 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
end
end
end