fix(cli): exclude Prisma migrations from SQLite pull#2427
fix(cli): exclude Prisma migrations from SQLite pull#2427ymc9 merged 1 commit intozenstackhq:devfrom
Conversation
Filters out the internal migration tracking table during the introspection process. This prevents the CLI from including system-level metadata in the generated schema, ensuring only user-defined tables and views are processed.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe change modifies the SQLite schema introspection query to exclude the Prisma migrations table by adding a filter condition ( Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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 |
There was a problem hiding this comment.
Pull request overview
Updates SQLite introspection logic in the CLI db pull flow to exclude Prisma’s internal migration tracking table so generated schemas only include user-defined tables/views, aligning SQLite behavior with other providers.
Changes:
- Exclude
_prisma_migrationsfrom the SQLitesqlite_schemaquery used during introspection. - Update inline comments to document the additional exclusion.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Filters out the internal migration tracking table during the introspection process. This prevents the CLI from including system-level metadata in the generated schema, ensuring only user-defined tables and views are processed.
Fixes: #2420
Summary by CodeRabbit