Skip to content

[10.x] Fix optional charset and collation when creating database - #50168

Merged
taylorotwell merged 3 commits into
laravel:10.xfrom
GrahamCampbell:fix-optional-charset-collation
Feb 21, 2024
Merged

taylorotwell merged 3 commits into
laravel:10.xfrom
GrahamCampbell:fix-optional-charset-collation

Conversation

@GrahamCampbell

Copy link
Copy Markdown
Collaborator

It is permitted to set the charset and collation to null in the database config, which will use the MySQL server defaults without sending a SET while setting up the connection. However, the MySqlGrammar grammar incorrectly assumes these are set. I propose we allow the server to choose if there's no explicit config.

@GrahamCampbell GrahamCampbell changed the title Fix optional charset and collation when creating database [10.x] Fix optional charset and collation when creating database Feb 20, 2024
@taylorotwell
taylorotwell merged commit e550f2b into laravel:10.x Feb 21, 2024
@GrahamCampbell
GrahamCampbell deleted the fix-optional-charset-collation branch February 22, 2024 09:07
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