Create index on `activities.local`
authorEgor Kislitsyn <egor@kislitsyn.com>
Mon, 3 Jun 2019 11:57:24 +0000 (18:57 +0700)
committerEgor Kislitsyn <egor@kislitsyn.com>
Wed, 5 Jun 2019 09:37:43 +0000 (16:37 +0700)
priv/repo/migrations/20190603115238_add_index_on_activities_local.exs [new file with mode: 0644]

diff --git a/priv/repo/migrations/20190603115238_add_index_on_activities_local.exs b/priv/repo/migrations/20190603115238_add_index_on_activities_local.exs
new file mode 100644 (file)
index 0000000..89daa97
--- /dev/null
@@ -0,0 +1,7 @@
+defmodule Pleroma.Repo.Migrations.AddIndexOnActivitiesLocal do
+  use Ecto.Migration
+
+  def change do
+    create(index("activities", [:local]))
+  end
+end