This commit is contained in:
Charlotte 🦝 Delenk 2022-09-10 20:26:34 +01:00
parent 84c4ee0e0f
commit b6284fe8b6
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -1,6 +1,6 @@
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..82a75a47b index 000000000..42c18943a
--- /dev/null --- /dev/null
+++ b/lib/mix/migrator.ex +++ b/lib/mix/migrator.ex
@@ -0,0 +1,114 @@ @@ -0,0 +1,114 @@
@ -111,10 +111,10 @@ index 000000000..82a75a47b
+ rescue + rescue
+ Ecto.ConstraintError -> + Ecto.ConstraintError ->
+ shell_info("Object already in database, skipping") + shell_info("Object already in database, skipping")
+ {:error, nil} + {:ok, nil}
+ FunctionClauseError -> + FunctionClauseError ->
+ shell_info("Unknown error occurred, skipping") + shell_info("Unknown error occurred, skipping")
+ {:error, nil} + {:ok, nil}
+ end + end
+ end + end
+end +end