go-gorm / postgres

GORM PostgreSQL driver
MIT License
225 stars 119 forks source link

Fix ci , field named "code2" add unique. #252

Closed jasonchuan closed 6 months ago

jasonchuan commented 6 months ago

What did this pull request do?

gorm test of migrate_test.go:613: column code2 unique should be correct

User Case Description

column code2 was not unique before ,and then if we migrate a object with column code2 unique , Migrater of postgre can't alter the table add the CONSTRAINT

jinzhu commented 6 months ago

Seems like the CI is passing now. Are you still encountering any issues?

jasonchuan commented 6 months ago

Seems like the CI is passing now. Are you still encountering any issues?

I encounted one before ,Now is ok ,I close this pr!