type to i.type

pull/2888/head
Victor Baranov 5 years ago committed by Ayrat Badykov
parent c0808ee6ce
commit 03c744542a
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 6
      apps/explorer/priv/repo/migrations/scripts/20181108205650_large_additional_internal_transaction_constraints.sql

@ -34,11 +34,11 @@ BEGIN
AND
(last_block_number IS NULL OR i.block_number < last_block_number) AND
-- call_has_call_type CONSTRAINT
((type = 'call' AND i.call_type IS NULL) OR
((i.type = 'call' AND i.call_type IS NULL) OR
-- call_has_input CONSTRAINT
(type = 'call' AND i.input IS NULL) OR
(i.type = 'call' AND i.input IS NULL) OR
-- create_has_init CONSTRAINT
(type = 'create' AND i.init is NULL))
(i.type = 'create' AND i.init is NULL))
ORDER BY i.block_number DESC, i.transaction_index LIMIT batch_size
) a;

Loading…
Cancel
Save