aboutsummaryrefslogtreecommitdiff
path: root/pkg/database
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-08-14 09:18:05 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-08-14 09:18:05 +0200
commita98acb9c8b86a2c2f35841c86d3c3f1d7c176b61 (patch)
tree786a64e1817c639d860ebbf74b89711232b1bc2a /pkg/database
parentfbd9c07b220283072e43681144a31675634637e8 (diff)
downloadlens-a98acb9c8b86a2c2f35841c86d3c3f1d7c176b61.tar.gz
lens-a98acb9c8b86a2c2f35841c86d3c3f1d7c176b61.tar.bz2
lens-a98acb9c8b86a2c2f35841c86d3c3f1d7c176b61.zip
fix: Add on fail for exif
Also remove unique index from thumbails path, because on fail it saves a empty path.
Diffstat (limited to 'pkg/database')
-rw-r--r--pkg/database/sql/media.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/database/sql/media.go b/pkg/database/sql/media.go
index 4b48608..b13e267 100644
--- a/pkg/database/sql/media.go
+++ b/pkg/database/sql/media.go
@@ -43,8 +43,8 @@ type (
MediaThumbnail struct {
gorm.Model
- Path string `gorm:"not null;unique"`
- MediaID uint `gorm:"not null"`
+ Path string
+ MediaID uint `gorm:"not null"`
Media Media
}