docs(d1): add rules of D1 best practices guide#31814
Conversation
…igration guidance
Review
Code ReviewThis code review is in beta and may not always be helpful — use your judgment. No code review issues found. ConventionsChecks PR title, description, and redirect checklist. No convention issues found. Style Guide ReviewWarnings (3)
Suggestions (4)
RedirectsNo missing redirect entries found. CommandsOnly codeowners can run commands. Post a comment with the command to trigger it.
|
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
PR Review: docs(d1): add rules of D1 best practices guideLabels
Summary What looks good
Issues to address before merging
Bottom line |
…cronym spelling, number words, WITH clarification
Summary
Adds a comprehensive best practices guide titled "Rules of D1" under the D1 best practices section. This is a revised version of the previously closed PR #31263, updated with new sections on migration tooling choices based on hands-on testing.
New in this version (compared to #31263)
The Schema and migrations section now includes:
All sections
Context
The ORM guidance was discovered during hands-on testing where
drizzle-kit generateattempted to drop Wrangler'sd1_migrationstable and recreate the application table unnecessarily. This experience informed the specific recommendations about reviewing generated SQL and understanding the split workflow between Drizzle (generate) and Wrangler (apply).Companion PRs: