mirror of https://github.com/portainer/portainer
15 lines
310 B
Go
15 lines
310 B
Go
package migrator
|
|
|
|
func (m *Migrator) updateSettingsToDBVersion16() error {
|
|
legacySettings, err := m.settingsService.Settings()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
if legacySettings.SnapshotInterval == "" {
|
|
legacySettings.SnapshotInterval = "5m"
|
|
}
|
|
|
|
return m.settingsService.UpdateSettings(legacySettings)
|
|
}
|