Merge branch 'fix/docs-dry-run' into 'develop'
[akkoma] / priv / repo / migrations / 20180327175831_actually_drop_local_index.exs
index 2da65689cc6ae9e5a3b7464dacc065f071fc2a46..7556336eda1fbcc5725bd25476b8c33dedbc0a10 100644 (file)
@@ -2,7 +2,7 @@ defmodule Pleroma.Repo.Migrations.ActuallyDropLocalIndex do
   use Ecto.Migration
 
   def change do
-    create index(:users, [:local])
+    create_if_not_exists index(:users, [:local])
     drop_if_exists index("activities", :local)
   end
 end