From ccde03285debe8def5d89d49b9afdcc48a76d7a6 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Thu, 9 Nov 2017 15:16:10 +0100 Subject: [PATCH] add sort index for activities --- .../20171109141309_add_sort_index_to_activities.exs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 priv/repo/migrations/20171109141309_add_sort_index_to_activities.exs diff --git a/priv/repo/migrations/20171109141309_add_sort_index_to_activities.exs b/priv/repo/migrations/20171109141309_add_sort_index_to_activities.exs new file mode 100644 index 000000000..2d21c56ca --- /dev/null +++ b/priv/repo/migrations/20171109141309_add_sort_index_to_activities.exs @@ -0,0 +1,8 @@ +defmodule Pleroma.Repo.Migrations.AddSortIndexToActivities do + use Ecto.Migration + @disable_ddl_transaction true + + def change do + create index(:activities, ["id desc nulls last"], concurrently: true) + end +end -- 2.45.2