diff --git a/db/models/upload.go b/db/models/upload.go index b272b89..7ce0ddb 100644 --- a/db/models/upload.go +++ b/db/models/upload.go @@ -9,7 +9,7 @@ func init() { type Upload struct { gorm.Model UserID uint - Hash []byte `gorm:"type:binary(32);unique_index"` + Hash []byte `gorm:"type:binary(32);uniqueIndex"` MimeType string Protocol string User User