mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 22:09:20 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user