From 5ea752dab2c5b0aab7efff67e2d007273d534da6 Mon Sep 17 00:00:00 2001 From: lain Date: Mon, 17 Aug 2020 14:11:36 +0200 Subject: [PATCH] Migrations: Add an index on the `invisible` field on users. --- .../20200817120935_add_invisible_index_to_users.exs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 priv/repo/migrations/20200817120935_add_invisible_index_to_users.exs 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 -- 2.45.2