projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add emojo
[akkoma]
/
priv
/
repo
/
migrations
/
20170620142420_add_object_activity_index_part_two.exs
diff --git
a/priv/repo/migrations/20170620142420_add_object_activity_index_part_two.exs
b/priv/repo/migrations/20170620142420_add_object_activity_index_part_two.exs
index 8d5a95c45e9707b2b1333ba20db9bec3db8a5b38..c95218fad4ee454b10a9ad3eda9830e9d3e50789 100644
(file)
--- a/
priv/repo/migrations/20170620142420_add_object_activity_index_part_two.exs
+++ b/
priv/repo/migrations/20170620142420_add_object_activity_index_part_two.exs
@@
-3,6
+3,6
@@
defmodule Pleroma.Repo.Migrations.AddObjectActivityIndexPartTwo do
def change do
drop_if_exists index(:objects, ["(data->'object'->>'id')", "(data->>'type')"], name: :activities_create_objects_index)
def change do
drop_if_exists index(:objects, ["(data->'object'->>'id')", "(data->>'type')"], name: :activities_create_objects_index)
- create index(:activities, ["(data->'object'->>'id')", "(data->>'type')"], name: :activities_create_objects_index)
+ create
_if_not_exists
index(:activities, ["(data->'object'->>'id')", "(data->>'type')"], name: :activities_create_objects_index)
end
end
end
end