Merge pull request #7639 from blockscout/fix-contract-creation-transactions
Fix contract creation transactionsmf-optimize-exchange-rates-requests-rate
commit
baed098c65
@ -0,0 +1,11 @@ |
|||||||
|
defmodule Explorer.Repo.Migrations.FixContractCreationTransactions do |
||||||
|
use Ecto.Migration |
||||||
|
|
||||||
|
def change do |
||||||
|
execute(""" |
||||||
|
UPDATE transactions |
||||||
|
SET created_contract_address_hash = NULL |
||||||
|
WHERE created_contract_address_hash IS NOT NULL AND to_address_hash IS NOT NULL; |
||||||
|
""") |
||||||
|
end |
||||||
|
end |
Loading…
Reference in new issue