Merge develop
[akkoma] / priv / repo / migrations / 20171109091239_add_actor_to_activity.exs
index 2d8b60a918c1045af786468779a21b99246d43de..fb5f80c98f61027b5fc9215c1228f3dcece3a9b4 100644 (file)
@@ -12,7 +12,7 @@ defmodule Pleroma.Repo.Migrations.AddActorToActivity do
   end
 
   def down do
-    drop index(:activities, [:actor, "id DESC NULLS LAST"])
+    drop_if_exists index(:activities, [:actor, "id DESC NULLS LAST"])
     alter table(:activities) do
       remove :actor
     end