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

[9.x] Allow non length limited strings and char for postgresql #41800

Merged
merged 1 commit into from
Apr 3, 2022
Merged

[9.x] Allow non length limited strings and char for postgresql #41800

merged 1 commit into from
Apr 3, 2022

Conversation

abenerd
Copy link
Contributor

@abenerd abenerd commented Apr 2, 2022

Postgres allows and even encourages users to not use length limited varchar and char types, this PR allows a user to set the Builder::$defaultStringLength to null which tells the postgres grammar to generate string and char types without a length specified.

https://wiki.postgresql.org/wiki/Don%27t_Do_This#Text_storage

@taylorotwell taylorotwell merged commit 7c9430a into laravel:9.x Apr 3, 2022
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