From: rinpatch Date: Mon, 25 Mar 2019 18:59:52 +0000 (+0300) Subject: Add an id index to notifications X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=9725c93ceaa4515299798b195db63cc9d31dd19f;p=akkoma Add an id index to notifications --- 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