Skip to content
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

Merged
merged 7 commits into from May 10, 2024
Merged

Feat/rename table #260

merged 7 commits into from May 10, 2024

Conversation

djklim87
Copy link
Contributor

No description provided.

Copy link
Contributor

@donhardman donhardman left a 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/Handler.php Outdated Show resolved Hide resolved
* }
* } $payload
*/
$payload = Payload::$sqlQueryParser::parse($request->payload);
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@djklim87
Copy link
Contributor Author

djklim87 commented May 9, 2024

We should move this plugin into the buddy-plugin-modify-table, because that plugin is designed to handle table modifications (including alters).

As discussed at last dev call we decide to separate plugins to keep it simple and clear

@djklim87 djklim87 requested a review from donhardman May 9, 2024 11:30
Copy link
Contributor

@donhardman donhardman left a 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

@djklim87 djklim87 merged commit 0d69023 into main May 10, 2024
3 checks passed
@djklim87 djklim87 deleted the feat/rename-table branch May 10, 2024 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants