This commit is contained in:
Charlotte 🦝 Delenk 2022-09-10 20:11:03 +01:00
parent a4e9de70a2
commit f208f28230
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -1,9 +1,9 @@
diff --git a/lib/mix/migrator.ex b/lib/mix/migrator.ex
new file mode 100644
index 000000000..806e18ce8
index 000000000..15a6ccf7c
--- /dev/null
+++ b/lib/mix/migrator.ex
@@ -0,0 +1,111 @@
@@ -0,0 +1,114 @@
+defmodule Mix.Pleroma.Migrator do
+ import Mix.Pleroma
+ alias Pleroma.Activity
@ -109,7 +109,10 @@ index 000000000..806e18ce8
+ shell_info("Object created")
+ {:ok, oobject}
+ rescue
+ _ ->
+ Ecto.ConstraintError ->
+ shell_info("Object already in database, skipping")
+ {nil, nil}
+ FunctionClauseError ->
+ shell_info("Unknown error occurred, skipping")
+ {nil, nil}
+ end