Skip to content

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 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

2 participants