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

fix: association many2many duplicate elem #5473

Merged
merged 2 commits into from Jul 1, 2022

Conversation

a631807682
Copy link
Contributor

@a631807682 a631807682 commented Jun 30, 2022

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

What did this pull request do?

close #5007

User Case Description

@jinzhu jinzhu merged commit c74bc57 into go-gorm:master Jul 1, 2022
31 checks passed
@a631807682 a631807682 deleted the fix_association branch Jul 1, 2022
@allidoisace
Copy link

@allidoisace allidoisace commented Jul 23, 2022

@jinzhu would this also solve duplicates for 3 composite keys?

PRIMARY KEY(id, version, time)?

@jinzhu
Copy link
Member

@jinzhu jinzhu commented Jul 26, 2022

@jinzhu would this also solve duplicates for 3 composite keys?

PRIMARY KEY(id, version, time)?

If you defined primary key tag for those three fields, it should works.

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