i hate it here
This commit is contained in:
parent
b6284fe8b6
commit
072eb12d92
1 changed files with 4 additions and 2 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..42c18943a
|
index 000000000..648b0166d
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/lib/mix/migrator.ex
|
+++ b/lib/mix/migrator.ex
|
||||||
@@ -0,0 +1,114 @@
|
@@ -0,0 +1,116 @@
|
||||||
+defmodule Mix.Pleroma.Migrator do
|
+defmodule Mix.Pleroma.Migrator do
|
||||||
+ import Mix.Pleroma
|
+ import Mix.Pleroma
|
||||||
+ alias Pleroma.Activity
|
+ alias Pleroma.Activity
|
||||||
|
@ -78,6 +78,8 @@ index 000000000..42c18943a
|
||||||
+ rescue
|
+ rescue
|
||||||
+ Ecto.ConstraintError ->
|
+ Ecto.ConstraintError ->
|
||||||
+ shell_info("Activity already in database, skipping")
|
+ shell_info("Activity already in database, skipping")
|
||||||
|
+ FunctionClauseError ->
|
||||||
|
+ shell_info("Unknown error occurred, skipping")
|
||||||
+ end
|
+ end
|
||||||
+ end
|
+ end
|
||||||
+ end
|
+ end
|
||||||
|
|
Reference in a new issue