mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Rename movies to groups in menu items in 65 post-migration (#5247)
* Only backup config file if needed in 58 migration * Change movies to groups in menu items in 65 post-migration
This commit is contained in:
@@ -129,6 +129,12 @@ func (m *schema58Migrator) migrateConfig() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
ui := c.GetUIConfiguration()
|
||||
if len(ui) == 0 {
|
||||
// no UI config to migrate
|
||||
return nil
|
||||
}
|
||||
|
||||
// save a backup of the original config file
|
||||
backupPath := fmt.Sprintf("%s.57.%s", orgPath, time.Now().Format("20060102_150405"))
|
||||
|
||||
@@ -143,7 +149,6 @@ func (m *schema58Migrator) migrateConfig() error {
|
||||
}
|
||||
|
||||
// migrate the plugin and UI configs from snake_case to camelCase
|
||||
ui := c.GetUIConfiguration()
|
||||
if ui != nil {
|
||||
ui = m.fromSnakeCaseMap(ui)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user