migrations: add is_moderator index for users table
This commit is contained in:
parent
3370fab1d0
commit
cf5d1302aa
|
@ -0,0 +1,7 @@
|
|||
defmodule Pleroma.Repo.Migrations.UsersAddIsModeratorIndex do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create index(:users, ["(info->'is_moderator')"], name: :users_is_moderator_index, using: :gin)
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue