projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rip out fetch_initial_posts
[akkoma]
/
priv
/
repo
/
migrations
/
20171212163643_add_recipients_to_activities.exs
diff --git
a/priv/repo/migrations/20171212163643_add_recipients_to_activities.exs
b/priv/repo/migrations/20171212163643_add_recipients_to_activities.exs
index 7bce78108df4aa1bda4f0d3596f25eb496559b05..6344fbeee5d060c65c0c8cf95ed3ec8b27418574 100644
(file)
--- a/
priv/repo/migrations/20171212163643_add_recipients_to_activities.exs
+++ b/
priv/repo/migrations/20171212163643_add_recipients_to_activities.exs
@@
-3,9
+3,9
@@
defmodule Pleroma.Repo.Migrations.AddRecipientsToActivities do
def change do
alter table(:activities) do
def change do
alter table(:activities) do
- add
:recipients, {:array, :string}
+ add
(:recipients, {:array, :string})
end
end
- create
index(:activities, [:recipients], using: :gin
)
+ create
_if_not_exists(index(:activities, [:recipients], using: :gin)
)
end
end
end
end