Release v1.14.0#417
Conversation
Release-candidate: v1.14.0
db/config.js sets bigNumberStrings: true for all environments, which
causes mysql2 to return COUNT() values as strings ("0") instead of
numbers (0). Four index-creation migrations used strict equality
(=== 0 / > 0) against that string, so the condition was always false
and the CREATE INDEX statements were silently skipped — migrations
completed and were recorded in SequelizeMeta but created no indexes.
Affected migrations:
- 20251201104138-add-tx-output-utxo-lookup-index
- 20260108100000-add-tx-output-locked-heightlock-index
- 20260108100001-add-tx-output-locked-timelock-index
- 20260108100002-add-address-tx-history-addr-voided-token-index
Fix: wrap the count value with Number() before comparing, so both
string and numeric returns are handled correctly.
Note: databases that already ran these migrations will not get the
indexes automatically (migrations won't re-run). The missing indexes
must be created manually:
CREATE INDEX idx_tx_output_utxo_lookup
ON tx_output (address, token_id, spent_by, voided, locked, authorities);
CREATE INDEX idx_tx_output_locked_heightlock
ON tx_output (locked, heightlock);
CREATE INDEX idx_tx_output_locked_timelock
ON tx_output (locked, timelock);
CREATE INDEX idx_address_tx_history_addr_voided_token
ON address_tx_history (address, voided, token_id);
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Release-candidate: v1.14.0-rc.2
Changes
Release-candidates
Checklist