diff options
author | rinpatch <rinpatch@sdf.org> | 2019-03-25 19:07:15 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-03-25 19:07:15 +0000 |
commit | 15aa94f40f73444d67da7cb71ec219b97ec5142e (patch) | |
tree | 816ba3e79e9cdfa0b4648b4693ddb032b4e1386b /priv | |
parent | b028b0f97d4b6310b1402b3b876aa8f8b286bc4d (diff) | |
parent | 9725c93ceaa4515299798b195db63cc9d31dd19f (diff) | |
download | pleroma-15aa94f40f73444d67da7cb71ec219b97ec5142e.tar.gz |
Merge branch 'fix/notification-id-index' into 'develop'
Add an `id desc nulls last` index to notifications
See merge request pleroma/pleroma!975
Diffstat (limited to 'priv')
-rw-r--r-- | priv/repo/migrations/20190325185009_create_notification_id_index.exs | 7 |
1 files 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 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 |