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