Participations: Add sort index.
authorlain <lain@soykaf.club>
Wed, 10 Apr 2019 15:30:25 +0000 (17:30 +0200)
committerlain <lain@soykaf.club>
Wed, 10 Apr 2019 15:30:25 +0000 (17:30 +0200)
priv/repo/migrations/20190410152859_add_participation_updated_at_index.exs [new file with mode: 0644]

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 (file)
index 0000000..1ce688c
--- /dev/null
@@ -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