projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'admin-create-users' into 'develop'
[akkoma]
/
priv
/
repo
/
migrations
/
20190603173419_add_tag_index_to_objects.exs
diff --git
a/priv/repo/migrations/20190603173419_add_tag_index_to_objects.exs
b/priv/repo/migrations/20190603173419_add_tag_index_to_objects.exs
index c915a021304d908ce0cbce2f38a8d80904ad5740..93d57a2494f0543b86c9de94480d9c3e6a7fd406 100644
(file)
--- a/
priv/repo/migrations/20190603173419_add_tag_index_to_objects.exs
+++ b/
priv/repo/migrations/20190603173419_add_tag_index_to_objects.exs
@@
-3,6
+3,6
@@
defmodule Pleroma.Repo.Migrations.AddTagIndexToObjects do
def change do
drop_if_exists index(:activities, ["(data #> '{\"object\",\"tag\"}')"], using: :gin, name: :activities_tags)
def change do
drop_if_exists index(:activities, ["(data #> '{\"object\",\"tag\"}')"], using: :gin, name: :activities_tags)
- create index(:objects, ["(data->'tag')"], using: :gin, name: :objects_tags)
+ create
_if_not_exists
index(:objects, ["(data->'tag')"], using: :gin, name: :objects_tags)
end
end
end
end