projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fix/pleroma-api-emoji-packs' into 'develop'
[akkoma]
/
priv
/
repo
/
migrations
/
20170620133028_add_object_activity_index.exs
diff --git
a/priv/repo/migrations/20170620133028_add_object_activity_index.exs
b/priv/repo/migrations/20170620133028_add_object_activity_index.exs
index df0b8391e50e544cd94ae6d7506984a082d71004..5c312b8f43ec15868c59b40b2a3e98de20614b48 100644
(file)
--- a/
priv/repo/migrations/20170620133028_add_object_activity_index.exs
+++ b/
priv/repo/migrations/20170620133028_add_object_activity_index.exs
@@
-3,6
+3,6
@@
defmodule Pleroma.Repo.Migrations.AddObjectActivityIndex do
def change do
# This was wrong, now a noop
def change do
# This was wrong, now a noop
- # create index(:objects, ["(data->'object'->>'id')", "(data->>'type')"], name: :activities_create_objects_index)
+ # create
_if_not_exists
index(:objects, ["(data->'object'->>'id')", "(data->>'type')"], name: :activities_create_objects_index)
end
end
end
end