on_conflict for insert_internal_transactions

Fixes #270
pull/285/head
Luke Imhoff 7 years ago
parent d817bfd88b
commit aa8bf505ad
  1. 2
      apps/explorer/lib/explorer/chain.ex
  2. 2
      coveralls.json

@ -2019,7 +2019,9 @@ defmodule Explorer.Chain do
{:ok, internal_transactions} =
insert_changes_list(
ordered_changes_list,
conflict_target: [:transaction_hash, :index],
for: InternalTransaction,
on_conflict: :replace_all,
returning: [:index, :transaction_hash],
timestamps: timestamps
)

@ -1,7 +1,7 @@
{
"coverage_options": {
"treat_no_relevant_lines_as_covered": true,
"minimum_coverage": 92.7
"minimum_coverage": 93.0
},
"terminal_options": {
"file_column_width": 120

Loading…
Cancel
Save