From: Roger Braun Date: Thu, 9 Nov 2017 14:16:10 +0000 (+0100) Subject: add sort index for activities X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=ccde03285debe8def5d89d49b9afdcc48a76d7a6;p=akkoma add sort index for activities --- 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