projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'reject' into 'develop'
[akkoma]
/
priv
/
repo
/
migrations
/
20190118074940_fix_user_trigram_index.exs
diff --git
a/priv/repo/migrations/20190118074940_fix_user_trigram_index.exs
b/priv/repo/migrations/20190118074940_fix_user_trigram_index.exs
index b4e8c984ce80a8e3a2da2ca30b90717f1f716bc6..b0d272802dba2beecea8b96366f19469a9025f59 100644
(file)
--- a/
priv/repo/migrations/20190118074940_fix_user_trigram_index.exs
+++ b/
priv/repo/migrations/20190118074940_fix_user_trigram_index.exs
@@
-4,7
+4,7
@@
defmodule Pleroma.Repo.Migrations.FixUserTrigramIndex do
def up do
drop_if_exists(index(:users, [], name: :users_trigram_index))
def up do
drop_if_exists(index(:users, [], name: :users_trigram_index))
- create(
+ create
_if_not_exists
(
index(:users, ["(trim(nickname || ' ' || coalesce(name, ''))) gist_trgm_ops"],
name: :users_trigram_index,
using: :gist
index(:users, ["(trim(nickname || ' ' || coalesce(name, ''))) gist_trgm_ops"],
name: :users_trigram_index,
using: :gist
@@
-15,7
+15,7
@@
defmodule Pleroma.Repo.Migrations.FixUserTrigramIndex do
def down do
drop_if_exists(index(:users, [], name: :users_trigram_index))
def down do
drop_if_exists(index(:users, [], name: :users_trigram_index))
- create(
+ create
_if_not_exists
(
index(:users, ["(nickname || name) gist_trgm_ops"], name: :users_trigram_index, using: :gist)
)
end
index(:users, ["(nickname || name) gist_trgm_ops"], name: :users_trigram_index, using: :gist)
)
end