mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-25 04:53:06 +00:00
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 a new issue