From: lain Date: Wed, 10 Apr 2019 15:30:25 +0000 (+0200) Subject: Participations: Add sort index. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=de57094fca505e7dbf1a84fef5fb31fae68f2709;p=akkoma Participations: Add sort index. --- diff --git a/priv/repo/migrations/20190410152859_add_participation_updated_at_index.exs b/priv/repo/migrations/20190410152859_add_participation_updated_at_index.exs new file mode 100644 index 000000000..1ce688c52 --- /dev/null +++ b/priv/repo/migrations/20190410152859_add_participation_updated_at_index.exs @@ -0,0 +1,7 @@ +defmodule Pleroma.Repo.Migrations.AddParticipationUpdatedAtIndex do + use Ecto.Migration + + def change do + create index(:conversation_participations, ["updated_at desc"]) + end +end