Skip to content

Error on using reserved keyword for migration name #2328

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

Merged
merged 3 commits into from
Dec 2, 2024

Conversation

MasterOdin
Copy link
Member

Closes #2326

PR makes it so that if using a reserved PHP keyword for a migration name, an error will now be raised for that command. Previously it would allow the migration to be created, but then fatal error on trying to parse that migration.

This is a port of cakephp/migrations#780, though I opted out of asking the user a question as part of the flow and just have it error out altogether for simplicity sake.

MasterOdin and others added 3 commits December 1, 2024 17:34
Co-authored-by: Mark Scherer <dereuromark@users.noreply.github.com>
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
@MasterOdin MasterOdin merged commit 74e1266 into 0.x Dec 2, 2024
12 checks passed
@MasterOdin MasterOdin deleted the fix-reserved-keywords branch December 2, 2024 02:56
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.

Dont create migrations with reserved keywords
1 participant