summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-08-17 14:11:36 +0200
committerlain <lain@soykaf.club>2020-08-17 14:11:36 +0200
commit5ea752dab2c5b0aab7efff67e2d007273d534da6 (patch)
tree35be94d9c06582a267862d030d7535496fa4caa3 /priv
parent014f91c1c3504d7e1f4407491d42223c79c0de05 (diff)
Migrations: Add an index on the `invisible` field on users.
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20200817120935_add_invisible_index_to_users.exs7
1 files changed, 7 insertions, 0 deletions
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