Implement typeTinyint for SQLite grammar#226
Implement typeTinyint for SQLite grammar#226Mrkbingham wants to merge 3 commits intowintercms:wip/1.3from
Conversation
Add typeTinyint method to handle tinyint type in SQLite.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThe changes introduce support for handling Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 Tip CodeRabbit can use your project's PHP CodeSniffer (phpcs) configuration to improve the quality of PHP code reviews.Add a |
|
Would it be possible to submit a test case for this? |
|
@mjauvin added a test! |
|
Thanks for adding the unit-test, however if I remove the |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@mjauvin I went back and double-checked, I'm still getting this error when running PHPUnit tests in my WinterCMS app as well as the test case I wrote here. I'm running SQLite v3.51.0, not sure if it's a version issue. I suppose as an alternative to lend more support downwards into Laravel rather than patching it here could be to just add a match statement on line 47: Happy to provide more details if there's anything you're curious about here. Also thanks for getting Coderabbit to review this @LukeTowers ! |
The
compileChangeoverride invendor/winter/storm/src/Database/Schema/Grammars/SQLiteGrammar.phpreads SQLite column type names as tinyint (from SQLite metadata for boolean columns), then calls getType() which looks for->typeTinyint(...— but only typeTinyInteger exists in the base grammar fileIlluminate\Database\Schema\Grammars\SQLiteGrammar.This should resolve migration issues others might hit when upgrading to 1.3
Summary by CodeRabbit
Bug Fixes
Tests