Fixing album model and index checks.

This commit is contained in:
Peter - Ubuntu dual boot
2021-09-18 20:43:34 +01:00
parent 406a3575ef
commit f71cef04fa
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ type Album struct {
Owners []User `gorm:"many2many:user_albums;constraint:OnDelete:CASCADE;"`
Path string `gorm:"not null"`
PathHash string `gorm:"unique"`
CoverID int `gorm:"index;"`
CoverID *int
}
func (a *Album) FilePath() string {