From 9725c93ceaa4515299798b195db63cc9d31dd19f Mon Sep 17 00:00:00 2001 From: rinpatch Date: Mon, 25 Mar 2019 21:59:52 +0300 Subject: [PATCH] Add an id index to notifications --- .../20190325185009_create_notification_id_index.exs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 priv/repo/migrations/20190325185009_create_notification_id_index.exs 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 index 000000000..a6ab38d02 --- /dev/null +++ b/priv/repo/migrations/20190325185009_create_notification_id_index.exs @@ -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 -- 2.45.2