From 1c4bd8e218937d41cde1b7a02dfc33b8505d49da Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Tue, 2 Jul 2019 22:14:20 +0200 Subject: [PATCH] Fix for photo model (typo in gorm annotations) --- internal/models/photo.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/models/photo.go b/internal/models/photo.go index 3978b1566..f3ce7eda7 100644 --- a/internal/models/photo.go +++ b/internal/models/photo.go @@ -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