diff options
author | rinpatch <rinpatch@sdf.org> | 2019-03-25 21:59:52 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-03-25 21:59:52 +0300 |
commit | 9725c93ceaa4515299798b195db63cc9d31dd19f (patch) | |
tree | 816ba3e79e9cdfa0b4648b4693ddb032b4e1386b | |
parent | b028b0f97d4b6310b1402b3b876aa8f8b286bc4d (diff) | |
download | pleroma-9725c93ceaa4515299798b195db63cc9d31dd19f.tar.gz pleroma-9725c93ceaa4515299798b195db63cc9d31dd19f.zip |
Add an id index to notifications
-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 |