Add index to photo_lat, photo_long and taken_at

This commit is contained in:
Michael Mayer 2019-07-02 19:27:21 +02:00
parent 5662fc35ed
commit 89b7886581

View file

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