fix(database): add migration for missing contact_private_info table#726
fix(database): add migration for missing contact_private_info table#726thepastaclaw wants to merge 1 commit intodashpay:v1.0-devfrom
Conversation
The contact_private_info table was created in create_tables() for fresh installs but had no corresponding migration step. Users with existing databases upgrading from any version would hit 'no such table: contact_private_info' when trying to save contact details or profiles. Add migration version 28 that calls init_contacts_tables() to create the table for existing databases. Fixes dashpay#686
|
@coderabbitai review |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughDatabase default version bumped from 28 to 29. The Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
✅ Actions performedReview triggered.
|
|
already fixed in base branch, v28 |
Issue
Fixes #686
Description
Users with existing databases get "no such table: contact_private_info" errors because
contact_private_infowas only created increate_tables()(fresh installs) but had no migration step inapply_version_changes().Fix
Added migration version 29 that calls
init_contacts_tables(). UsesCREATE TABLE IF NOT EXISTSso it's idempotent and safe for all database states (fresh installs already have the table; upgraders will get it via migration).Testing
cargo check✅Summary by CodeRabbit