1
Fork 0

Merge pull request #553 from photoview/viktorstrate/issue502

Add bigint as correct type for exif migrations
This commit is contained in:
Viktor Strate Kløvedal 2021-10-02 17:14:56 +02:00 committed by GitHub
commit a0e73aa3d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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