Add changelog entry for hashtag following
[akkoma] / priv / repo / migrations / 20190622151019_add_group_key_to_config.exs
index d7a3785d09f7c3859f0d3d4a1db19e7b28c97023..867dafaf3825e411691f21d840c15fcb28117c50 100644 (file)
@@ -6,7 +6,7 @@ defmodule Pleroma.Repo.Migrations.AddGroupKeyToConfig do
       add(:group, :string)
     end
 
-    drop(unique_index("config", :key))
-    create(unique_index("config", [:group, :key]))
+    drop_if_exists(unique_index("config", :key))
+    create_if_not_exists(unique_index("config", [:group, :key]))
   end
 end