projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add an index on object likes
[akkoma]
/
priv
/
repo
/
migrations
/
20171109091239_add_actor_to_activity.exs
diff --git
a/priv/repo/migrations/20171109091239_add_actor_to_activity.exs
b/priv/repo/migrations/20171109091239_add_actor_to_activity.exs
index 2d8b60a918c1045af786468779a21b99246d43de..fb5f80c98f61027b5fc9215c1228f3dcece3a9b4 100644
(file)
--- a/
priv/repo/migrations/20171109091239_add_actor_to_activity.exs
+++ b/
priv/repo/migrations/20171109091239_add_actor_to_activity.exs
@@
-12,7
+12,7
@@
defmodule Pleroma.Repo.Migrations.AddActorToActivity do
end
def down do
- drop index(:activities, [:actor, "id DESC NULLS LAST"])
+ drop
_if_exists
index(:activities, [:actor, "id DESC NULLS LAST"])
alter table(:activities) do
remove :actor
end