Fix for photo model (typo in gorm annotations)

This commit is contained in:
Michael Mayer 2019-07-02 22:14:20 +02:00
parent bc65ad57d5
commit 1c4bd8e218

View File

@ -22,8 +22,8 @@ type Photo struct {
PhotoPrivate bool
PhotoSensitive bool
PhotoStory bool
PhotoLat float64 `gorm:"type:index;"`
PhotoLong float64 `gorm:"type:index;"`
PhotoLat float64 `gorm:"index;"`
PhotoLong float64 `gorm:"index;"`
PhotoAltitude int
PhotoFocalLength int
PhotoIso int
@ -41,7 +41,7 @@ type Photo struct {
LocationID uint
LocationChanged bool
LocationEstimated bool
TakenAt time.Time `gorm:"type:index;"`
TakenAt time.Time `gorm:"index;"`
TakenAtChanged bool
TimeZone string
Labels []*PhotoLabel