projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
thread visibility function: fix use of no longer used author variable
[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 705a05f822a152a28667f40cbdf434cd54a7cb1e..8d5a95c45e9707b2b1333ba20db9bec3db8a5b38 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
@@
-2,7
+2,7
@@
defmodule Pleroma.Repo.Migrations.AddObjectActivityIndexPartTwo do
use Ecto.Migration
def change do
use Ecto.Migration
def change do
- drop index(:objects, ["(data->'object'->>'id')", "(data->>'type')"], name: :activities_create_objects_index)
+ 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)
end
end
create index(:activities, ["(data->'object'->>'id')", "(data->>'type')"], name: :activities_create_objects_index)
end
end