projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix linkify ConfigDB migration
[akkoma]
/
priv
/
repo
/
migrations
/
20180516154905_create_user_trigram_index.exs
diff --git
a/priv/repo/migrations/20180516154905_create_user_trigram_index.exs
b/priv/repo/migrations/20180516154905_create_user_trigram_index.exs
index abfa4b3cc41fcc8aac91f5dfa1a8962161082c0a..0713a7297df1003f12350048b0ee7cff3520e597 100644
(file)
--- a/
priv/repo/migrations/20180516154905_create_user_trigram_index.exs
+++ b/
priv/repo/migrations/20180516154905_create_user_trigram_index.exs
@@
-2,6
+2,8
@@
defmodule Pleroma.Repo.Migrations.CreateUserTrigramIndex do
use Ecto.Migration
def change do
use Ecto.Migration
def change do
- create index(:users, ["(nickname || name) gist_trgm_ops"], name: :users_trigram_index, using: :gist)
+ create_if_not_exists(
+ index(:users, ["(nickname || name) gist_trgm_ops"], name: :users_trigram_index, using: :gist)
+ )
end
end
end
end