aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-03-27 19:48:01 +0200
committerlain <lain@soykaf.club>2018-03-27 19:48:01 +0200
commitb56bb88c02dcbbc16ca3f861df5d5e09828fc56a (patch)
treefa8e611fed026b40ea9276122f266df94e014325
parent37e5014d3ee571622d324cdadfc2bf7c345cc1fc (diff)
downloadpleroma-b56bb88c02dcbbc16ca3f861df5d5e09828fc56a.tar.gz
Drop index for 'local', it confuses the query planner.
-rw-r--r--priv/repo/migrations/20180327174350_drop_local_index_on_activities.exs7
1 files changed, 7 insertions, 0 deletions
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
index 000000000..70f2c9fe6
--- /dev/null
+++ b/priv/repo/migrations/20180327174350_drop_local_index_on_activities.exs
@@ -0,0 +1,7 @@
+defmodule Pleroma.Repo.Migrations.DropLocalIndexOnActivities do
+ use Ecto.Migration
+
+ def change do
+ drop index(:users, [:local])
+ end
+end