Add index to photo_lat, photo_long and taken_at
This commit is contained in:
parent
5662fc35ed
commit
89b7886581
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue