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
Feat/rename table #260
Feat/rename table #260
Conversation
# Conflicts: # composer.lock # src/init.php
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.
We should move this plugin into the buddy-plugin-modify-table
, because that plugin is designed to handle table modifications (including alters).
src/Plugin/RenameTable/Payload.php
Outdated
* } | ||
* } $payload | ||
*/ | ||
$payload = Payload::$sqlQueryParser::parse($request->payload); |
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.
hasMatch should be as lightweight as possible. We should use simple validation here with something like strpos, and avoid doing any heavy query parsing because it's blocking and slowing down other plugins.
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.
done
As discussed at last dev call we decide to separate plugins to keep it simple and clear |
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.
Looks good for me
No description provided.