status-go/appdatabase/migrations/sql/1686825075_cleanup_token_ad...

4 lines
273 B
SQL

-- Fix the token_address column in the transfers table that has been
-- incorrectly set to a string of the form "0x12ab..34cd" instead of a byte array
UPDATE transfers SET token_address = replace(replace(token_address, '0x', ''), '"', '') WHERE token_address LIKE '"0x%"';