Reduce length for file names to 2048 chars to fix error on CI, see #106

This commit is contained in:
Michael Mayer 2019-04-26 02:44:57 +02:00
parent ffc64cceb0
commit 2f15ca2c59

View file

@ -11,7 +11,7 @@ type File struct {
PhotoID uint
FilePrimary bool
FileMissing bool
FileName string `gorm:"type:varchar(4096);index"`
FileName string `gorm:"type:varchar(2048);index"`
FileType string `gorm:"type:varchar(32)"`
FileMime string `gorm:"type:varchar(64)"`
FileWidth int