add sort index for activities

This commit is contained in:
Roger Braun 2017-11-09 15:16:10 +01:00
parent 9e60de695d
commit ccde03285d

View file

@ -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