Skip to content

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

Merged
taylorotwell merged 1 commit into
laravel:9.xfrom
abenerd:feature/postgres-string-without-length
Apr 3, 2022
Merged

[9.x] Allow non length limited strings and char for postgresql#41800
taylorotwell merged 1 commit into
laravel:9.xfrom
abenerd:feature/postgres-string-without-length

Conversation

@abenerd
Copy link
Copy Markdown
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