projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
moving to mrf namespace migration fix
[akkoma]
/
priv
/
repo
/
migrations
/
20190123092341_users_add_is_admin_index.exs
diff --git
a/priv/repo/migrations/20190123092341_users_add_is_admin_index.exs
b/priv/repo/migrations/20190123092341_users_add_is_admin_index.exs
index ba6ff78b5e1b8dbf0ac428916e6778eeca3b0cd8..f42d464279eb46a6dca3ccef03e5025b1bd33bae 100644
(file)
--- a/
priv/repo/migrations/20190123092341_users_add_is_admin_index.exs
+++ b/
priv/repo/migrations/20190123092341_users_add_is_admin_index.exs
@@
-2,6
+2,8
@@
defmodule Pleroma.Repo.Migrations.UsersAddIsAdminIndex do
use Ecto.Migration
def change do
- create(index(:users, ["(info->'is_admin')"], name: :users_is_admin_index, using: :gin))
+ create_if_not_exists(
+ index(:users, ["(info->'is_admin')"], name: :users_is_admin_index, using: :gin)
+ )
end
end