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

Fix generating enum fields having values of uppercase letters #79

Merged

Conversation

kevinb1989
Copy link
Contributor

@kevinb1989 kevinb1989 commented Jan 6, 2024

Recently I have started a new side project, utilizing the existing sakila database.

The film.rating field is of enum type with the following possible values: G, PG, PG-13, R, NC-17.

When I generate the migrations for the database, this is the statement for the film.rating field:

$table->enum('rating', ['g', 'pg', 'pg-13', 'r', 'nc-17'])->default('G');

So all possible values are converted to lower case.

The fix is simple, all test cases pass. But I think this could be a breaking change.

Pls let me know if I need to do anything else.

Copy link
Owner

@bennett-treptow bennett-treptow left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for contributing @kevinb1989!

These changes have been released in version 4.3.2

@bennett-treptow bennett-treptow merged commit 7a91445 into bennett-treptow:main Jan 6, 2024
1 check failed
@kevinb1989
Copy link
Contributor Author

Awesome, thanks for contributing @kevinb1989!

These changes have been released in version 4.3.2

You are very welcomed!

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.

2 participants