summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-03-25 19:07:15 +0000
committerrinpatch <rinpatch@sdf.org>2019-03-25 19:07:15 +0000
commit15aa94f40f73444d67da7cb71ec219b97ec5142e (patch)
tree816ba3e79e9cdfa0b4648b4693ddb032b4e1386b
parentb028b0f97d4b6310b1402b3b876aa8f8b286bc4d (diff)
parent9725c93ceaa4515299798b195db63cc9d31dd19f (diff)
downloadpleroma-15aa94f40f73444d67da7cb71ec219b97ec5142e.tar.gz
pleroma-15aa94f40f73444d67da7cb71ec219b97ec5142e.zip
Merge branch 'fix/notification-id-index' into 'develop'
Add an `id desc nulls last` index to notifications See merge request pleroma/pleroma!975
-rw-r--r--priv/repo/migrations/20190325185009_create_notification_id_index.exs7
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