ffs
This commit is contained in:
parent
84c4ee0e0f
commit
b6284fe8b6
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Reference in a new issue