diff options
author | Egor <egor@kislitsyn.com> | 2019-02-20 16:51:25 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2019-02-20 16:51:25 +0000 |
commit | bff9eb5ef7ad446376f68807d4e51db5f2de9515 (patch) | |
tree | d1c2525ccfbee6e8e468e77611e46c7797e12d71 /priv | |
parent | 77fb926afa53a6d156729b1dd1613e1fed0c7910 (diff) | |
download | pleroma-bff9eb5ef7ad446376f68807d4e51db5f2de9515.tar.gz pleroma-bff9eb5ef7ad446376f68807d4e51db5f2de9515.zip |
Reports
Diffstat (limited to 'priv')
-rw-r--r-- | priv/repo/migrations/20190123092341_users_add_is_admin_index.exs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/priv/repo/migrations/20190123092341_users_add_is_admin_index.exs b/priv/repo/migrations/20190123092341_users_add_is_admin_index.exs new file mode 100644 index 000000000..ba6ff78b5 --- /dev/null +++ b/priv/repo/migrations/20190123092341_users_add_is_admin_index.exs @@ -0,0 +1,7 @@ +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)) + end +end |