From: William Pitcock Date: Mon, 3 Sep 2018 11:55:12 +0000 (+0000) Subject: migrations: add is_moderator index for users table X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=cf5d1302aa97c3a042421333f93d91b474266e51;p=akkoma migrations: add is_moderator index for users table --- diff --git a/priv/repo/migrations/20180903114437_users_add_is_moderator_index.exs b/priv/repo/migrations/20180903114437_users_add_is_moderator_index.exs new file mode 100644 index 000000000..ba6b90ea9 --- /dev/null +++ b/priv/repo/migrations/20180903114437_users_add_is_moderator_index.exs @@ -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