diff --git a/api/database/migration_exif.go b/api/database/migration_exif.go index 90571f7..7b0aac9 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", "bigint": + case "double", "numeric", "real", "bigint", "integer": // 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", "bigint": + case "double", "numeric", "real", "bigint", "integer": // correct type, do nothing default: // do migration