Add an id index to notifications
authorrinpatch <rinpatch@sdf.org>
Mon, 25 Mar 2019 18:59:52 +0000 (21:59 +0300)
committerrinpatch <rinpatch@sdf.org>
Mon, 25 Mar 2019 18:59:52 +0000 (21:59 +0300)
priv/repo/migrations/20190325185009_create_notification_id_index.exs [new file with mode: 0644]

diff --git a/priv/repo/migrations/20190325185009_create_notification_id_index.exs b/priv/repo/migrations/20190325185009_create_notification_id_index.exs
new file mode 100644 (file)
index 0000000..a6ab38d
--- /dev/null
@@ -0,0 +1,7 @@
+defmodule Pleroma.Repo.Migrations.CreateNotificationIdIndex do
+  use Ecto.Migration
+
+  def change do
+  create index(:notifications, ["id desc nulls last"])
+  end
+end