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

override identifier length for postgres #232

Merged

Conversation

alidevhere
Copy link
Contributor

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

This PR addresses issue-191. It overrides gorm's default maximum identifier length by Postgres maximum identifier length of 63.
provide a general description of the code changes in your pull request

User Case Description

It sets default max identifier length to that of Postgres, which is 63, without changing anyother naming strategy, if defined by user.

postgres.go Outdated Show resolved Hide resolved
@jinzhu jinzhu merged commit e6d2435 into go-gorm:master Jan 29, 2024
1 check passed
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.

3 participants