-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update compileTableExists definition #30
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe pull request modifies the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/FakeSchemaGrammar.php (1)
152-157
: Consider adding argument logging for consistency.For consistency with other methods like
compileColumns
, consider including the arguments in the metadata:public function compileTableExists($database, $table) { return $this->stringy([ 'type' => 'tableExists', + 'args' => ['database' => $database, 'table' => $table], 'sql' => parent::compileTableExists($database, $table), ]); }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/FakeSchemaGrammar.php
(1 hunks)
🔇 Additional comments (1)
src/FakeSchemaGrammar.php (1)
152-157
: LGTM! Implementation correctly aligns with Laravel's changes.The updated method signature and implementation properly match the parent class while maintaining the class's pattern of wrapping SQL queries with metadata.
Let's verify this matches Laravel's implementation:
@imanghafoori1 Please can you take some time to review this PR? I also need this change adding to fix a broken CI pipeline with upgrading the Laravel version in a repo at work. |
I think you have restrict the compatible version of Laravel to |
Going to close it then given that |
You can amend or do a |
Ah, sorry, |
You may also update the GitHub actions .yml file to run the tests only with laravel v11 in this PR. |
I merged the PR for now, you can install |
Within laravel/framework#53006 definition of compileTableExists method has changed - this PR aligns the definition to the change.
This also means that
5.*|6.*|7.*|8.*|9.*|10.*
require forilluminate/database
will no longer apply though.Think you could do
__call
like this for this (and other methods likecompileColumnListing
,compileGetAllTables
etc)so that support for different versions still remains
Summary by CodeRabbit