Out of range value for column 'block_timestamp'
jun0tpyrc opened this issue · comments
after upgrading from
0631885 to a91941c
ERROR 10/12-17:02:08.343 /subscan/internal/service/substrate.go:229 Create chain block error Error 1264: Out of range value for column 'block_timestamp' at row 1
ERROR 10/12-17:02:08.343 /subscan/internal/service/substrate.go:112 ChainGetBlockHash get error Error 1264: Out of range value for column 'block_timestamp' at row 1
might be related to recent 0.9.11 release (incompatible to fallback in version for data format change), don't have a snapshot to test with
seeing it in kusama
& westend
, parity/polkadot:v0.9.11 + current master a91941c commit
database, same as https://github.com/itering/subscan-essentials/blob/master/docker-compose.db.yml#L5 docker->mysql v5.7 series
block_timestamp | int(11) for field in actual table
@jun0tpyrc Polkadot, Kusama update metadata v14, timestamp type is uint64 Microseconds, this requires a convert
🙏 does it need code changes to make subscan being able to build next "tables" for chain_blocks_XXX etc with the correct mysql field type?
@jun0tpyrc Fixed, 6400a20