Telegram (ask questions / claim the issue here first): https://t.me/+DOylgFv1jyJlNzM0
Why this matters
migrations/ contains colliding prefixes 1777000000007, 1778000000008, 1786000000016 and 1788000000018. The 1788000000018 pair is the most dangerous: unified-contract-events.js renames loan_events to contract_events while add-loan-events-missing-indexes.js creates indexes on loan_events, so order determines whether the migration succeeds.
Acceptance criteria
Files to touch
- migrations/1788000000018_unified-contract-events.js
- migrations/1788000000018_add-loan-events-missing-indexes.js
- migrations/1777000000007_unique-loan-status-events.js
- migrations/1786000000016_webhook-max-attempts.js
Out of scope
- Rewriting the migration logic itself
- Squashing historical migrations
Why this matters
migrations/ contains colliding prefixes 1777000000007, 1778000000008, 1786000000016 and 1788000000018. The 1788000000018 pair is the most dangerous: unified-contract-events.js renames loan_events to contract_events while add-loan-events-missing-indexes.js creates indexes on loan_events, so order determines whether the migration succeeds.
Acceptance criteria
npm run migrate:upon an empty DB applies all migrations in a deterministic, correct orderFiles to touch
Out of scope