Remove Thumbnail Preferences. (#1200)

* Remove thumbnail preferences. #1089

* Remove thumbnail preferences test.

* Remove thumbnail preferences from backend.

* Fix database.go

* Update generated TS files.

* Reorder the migrations.
This commit is contained in:
Googol Lee
2025-05-11 10:44:58 +02:00
committed by GitHub
parent 27a0b082d1
commit fe3cc16026
15 changed files with 32 additions and 625 deletions

View File

@@ -195,6 +195,11 @@ func MigrateDatabase(db *gorm.DB) error {
log.Printf("Failed to run exif GPS correction migration: %v\n", err)
}
// v2.5.0 - Remove Thumbnail Method for Downsampliing filters
if db.Migrator().HasColumn(&models.SiteInfo{}, "thumbnail_method") {
db.Migrator().DropColumn(&models.SiteInfo{}, "thumbnail_method")
}
return nil
}