From: lain Date: Mon, 17 Aug 2020 12:11:36 +0000 (+0200) Subject: Migrations: Add an index on the `invisible` field on users. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5ea752dab2c5b0aab7efff67e2d007273d534da6;p=akkoma Migrations: Add an index on the `invisible` field on users. --- diff --git a/priv/repo/migrations/20200817120935_add_invisible_index_to_users.exs b/priv/repo/migrations/20200817120935_add_invisible_index_to_users.exs new file mode 100644 index 000000000..2417d366e --- /dev/null +++ b/priv/repo/migrations/20200817120935_add_invisible_index_to_users.exs @@ -0,0 +1,7 @@ +defmodule Pleroma.Repo.Migrations.AddInvisibleIndexToUsers do + use Ecto.Migration + + def change do + create(index(:users, [:invisible])) + end +end