Skip to content

Conversation

@Orefa
Copy link

@Orefa Orefa commented Nov 19, 2025

add Unique Check

@jinzhu
Copy link
Member

jinzhu commented Nov 22, 2025

Hi @Orefa can you add some tests for the changes?

@Orefa
Copy link
Author

Orefa commented Nov 24, 2025

Hi @Orefa can you add some tests for the changes?
已经添加了,目前看到gorm当中源码,并不支持多字段uk,如果通过sql添加了多字段uk后, 再次执行AutoMigrate 会报错,fix: Composite unique constraint 是参考postgres的实现进行的修改

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