Drop index for 'local', it confuses the query planner.
authorlain <lain@soykaf.club>
Tue, 27 Mar 2018 17:48:01 +0000 (19:48 +0200)
committerlain <lain@soykaf.club>
Tue, 27 Mar 2018 17:48:01 +0000 (19:48 +0200)
priv/repo/migrations/20180327174350_drop_local_index_on_activities.exs [new file with mode: 0644]

diff --git a/priv/repo/migrations/20180327174350_drop_local_index_on_activities.exs b/priv/repo/migrations/20180327174350_drop_local_index_on_activities.exs
new file mode 100644 (file)
index 0000000..70f2c9f
--- /dev/null
@@ -0,0 +1,7 @@
+defmodule Pleroma.Repo.Migrations.DropLocalIndexOnActivities do
+  use Ecto.Migration
+
+  def change do
+    drop index(:users, [:local])
+  end
+end