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

Creating unique indexes with naming and where condition in postgres will create redundant error indexes #6407

Closed
moluuser opened this issue Jun 12, 2023 · 3 comments
Assignees
Labels
type:with reproduction steps with reproduction steps

Comments

@moluuser
Copy link

moluuser commented Jun 12, 2023

GORM Playground Link

go-gorm/playground#616

Description

For this field:
https://github.com/go-gorm/playground/pull/616/files#diff-79ce3229c13921b79b1175dcb211336aaf84dfd8edcf19c07698934d4fe70e5eR32

The index named uidx_user_with_unique_indices_token is expected to be created, but the index named idx_user_with_unique_indices_token is created incorrectly at the same time.

The error occurred after upgrading gorm, it was working normally in v1.24.2. And in my testing, only postgres will appear.

@github-actions github-actions bot added the type:missing reproduction steps missing reproduction steps label Jun 12, 2023
@github-actions
Copy link

The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.ioSearch Before Asking

@a631807682
Copy link
Member

One of the cases of #6381

@a631807682
Copy link
Member

#6381 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:with reproduction steps with reproduction steps
Projects
None yet
Development

No branches or pull requests

3 participants