logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: 15aa94f40f73444d67da7cb71ec219b97ec5142e
parent: b028b0f97d4b6310b1402b3b876aa8f8b286bc4d
Author: rinpatch <rinpatch@sdf.org>
Date:   Mon, 25 Mar 2019 19:07:15 +0000

Merge branch 'fix/notification-id-index' into 'develop'

Add an `id desc nulls last` index to notifications

See merge request pleroma/pleroma!975

Diffstat:

Apriv/repo/migrations/20190325185009_create_notification_id_index.exs7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/priv/repo/migrations/20190325185009_create_notification_id_index.exs 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