This commit is contained in:
Charlotte 🦝 Delenk 2022-09-10 19:49:19 +01:00
parent 0b9e0a2ce2
commit a4e9de70a2
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..7ea9fbd46
index 000000000..806e18ce8
--- /dev/null
+++ b/lib/mix/migrator.ex
@@ -0,0 +1,114 @@
@@ -0,0 +1,111 @@
+defmodule Mix.Pleroma.Migrator do
+ import Mix.Pleroma
+ alias Pleroma.Activity
@ -109,12 +109,9 @@ index 000000000..7ea9fbd46
+ shell_info("Object created")
+ {:ok, oobject}
+ rescue
+ Ecto.ConstraintError ->
+ shell_info("Object already in database, skipping")
+ {:error, nil}
+ err ->
+ _ ->
+ shell_info("Unknown error occurred, skipping")
+ {:error, nil}
+ {nil, nil}
+ end
+ end
+end