mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-17 22:54:40 +00:00
migrations: add is_moderator index for users table
This commit is contained in:
parent
3370fab1d0
commit
cf5d1302aa
1 changed files with 7 additions and 0 deletions
|
@ -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