fix: wrong tag option for unique index
This commit is contained in:
parent
f98b0f48bd
commit
2e9694149b
|
@ -9,7 +9,7 @@ func init() {
|
||||||
type Upload struct {
|
type Upload struct {
|
||||||
gorm.Model
|
gorm.Model
|
||||||
UserID uint
|
UserID uint
|
||||||
Hash []byte `gorm:"type:binary(32);unique_index"`
|
Hash []byte `gorm:"type:binary(32);uniqueIndex"`
|
||||||
MimeType string
|
MimeType string
|
||||||
Protocol string
|
Protocol string
|
||||||
User User
|
User User
|
||||||
|
|
Loading…
Reference in New Issue