Migrations: Add an index on the `invisible` field on users.
authorlain <lain@soykaf.club>
Mon, 17 Aug 2020 12:11:36 +0000 (14:11 +0200)
committerlain <lain@soykaf.club>
Mon, 17 Aug 2020 12:11:36 +0000 (14:11 +0200)
priv/repo/migrations/20200817120935_add_invisible_index_to_users.exs [new file with mode: 0644]

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 (file)
index 0000000..2417d36
--- /dev/null
@@ -0,0 +1,7 @@
+defmodule Pleroma.Repo.Migrations.AddInvisibleIndexToUsers do
+  use Ecto.Migration
+
+  def change do
+    create(index(:users, [:invisible]))
+  end
+end