Skip to content

Commit

Permalink
Add bigint as correct type for exif migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorstrate committed Oct 2, 2021
1 parent 007255b commit f322300
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/database/migration_exif.go
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f322300

Please sign in to comment.