From f3223005b1dcc068d82bbf5ed98324dedc5d0f45 Mon Sep 17 00:00:00 2001 From: viktorstrate Date: Sat, 2 Oct 2021 17:05:47 +0200 Subject: [PATCH] Add bigint as correct type for exif migrations --- api/database/migration_exif.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/database/migration_exif.go b/api/database/migration_exif.go index fbd20bd9..3cdd1a4f 100644 --- a/api/database/migration_exif.go +++ b/api/database/migration_exif.go @@ -22,7 +22,7 @@ func migrate_exif_fields(db *gorm.DB) error { for _, exifCol := range mediaExifColumns { if exifCol.Name() == "exposure" { switch exifCol.DatabaseTypeName() { - case "double", "numeric", "real": + case "double", "numeric", "real", "bigint": // correct type, do nothing default: // do migration @@ -34,7 +34,7 @@ func migrate_exif_fields(db *gorm.DB) error { if exifCol.Name() == "flash" { switch exifCol.DatabaseTypeName() { - case "double", "numeric", "real": + case "double", "numeric", "real", "bigint": // correct type, do nothing default: // do migration