1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

fix(api): set a default value for potentially empty snapshot interval (#2543)

This commit is contained in:
Anthony Lapenna 2018-12-12 21:16:44 +13:00 committed by GitHub
parent 6648c0bbe7
commit 6b05a35881
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 1 deletions

View file

@ -203,5 +203,12 @@ func (m *Migrator) Migrate() error {
}
}
if m.currentDBVersion < 16 {
err := m.updateSettingsToDBVersion16()
if err != nil {
return err
}
}
return m.versionService.StoreDBVersion(portainer.DBVersion)
}