bruh
This commit is contained in:
parent
a4e9de70a2
commit
f208f28230
1 changed files with 6 additions and 3 deletions
|
@ -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..806e18ce8
|
index 000000000..15a6ccf7c
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/lib/mix/migrator.ex
|
+++ b/lib/mix/migrator.ex
|
||||||
@@ -0,0 +1,111 @@
|
@@ -0,0 +1,114 @@
|
||||||
+defmodule Mix.Pleroma.Migrator do
|
+defmodule Mix.Pleroma.Migrator do
|
||||||
+ import Mix.Pleroma
|
+ import Mix.Pleroma
|
||||||
+ alias Pleroma.Activity
|
+ alias Pleroma.Activity
|
||||||
|
@ -109,7 +109,10 @@ index 000000000..806e18ce8
|
||||||
+ shell_info("Object created")
|
+ shell_info("Object created")
|
||||||
+ {:ok, oobject}
|
+ {:ok, oobject}
|
||||||
+ rescue
|
+ rescue
|
||||||
+ _ ->
|
+ Ecto.ConstraintError ->
|
||||||
|
+ shell_info("Object already in database, skipping")
|
||||||
|
+ {nil, nil}
|
||||||
|
+ FunctionClauseError ->
|
||||||
+ shell_info("Unknown error occurred, skipping")
|
+ shell_info("Unknown error occurred, skipping")
|
||||||
+ {nil, nil}
|
+ {nil, nil}
|
||||||
+ end
|
+ end
|
||||||
|
|
Reference in a new issue