Using numeric(20,0) for chain_selector and blocks in ccv_chain_statuses#21303
Using numeric(20,0) for chain_selector and blocks in ccv_chain_statuses#21303mateusz-sekara merged 1 commit intodevelopfrom
Conversation
|
👋 mateusz-sekara, thanks for creating this pull request! To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team. Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks! |
|
✅ No conflicts with other open PRs targeting |
|
I see you updated files related to
|
There was a problem hiding this comment.
Pull request overview
This PR updates the database schema for the ccv_chain_statuses table to use NUMERIC(20,0) instead of TEXT for the chain_selector and finalized_block_height columns. This change aligns with the pattern established in other tables throughout the codebase where uint64 values (like chain selectors) are stored using NUMERIC(20,0).
Changes:
- Converts
chain_selectorcolumn from TEXT to NUMERIC(20,0) inccv_chain_statusestable - Converts
finalized_block_heightcolumn from TEXT to NUMERIC(20,0) inccv_chain_statusestable - Provides proper up and down migration paths with primary key handling
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|





Context smartcontractkit/chainlink-ccv#783