1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

feat(api/bolt): update DBVersion to 25

This commit is contained in:
Anthony Lapenna 2020-07-25 11:10:46 +12:00
parent 3953acf110
commit e78aaec558
4 changed files with 32 additions and 18 deletions

View file

@ -321,7 +321,7 @@ func (m *Migrator) Migrate() error {
}
}
// Portainer 2.0
// Portainer 1.24.1
if m.currentDBVersion < 24 {
err := m.updateSettingsToDB24()
if err != nil {
@ -329,5 +329,13 @@ func (m *Migrator) Migrate() error {
}
}
// Portainer 2.0
if m.currentDBVersion < 25 {
err := m.updateSettingsToDB25()
if err != nil {
return err
}
}
return m.versionService.StoreDBVersion(portainer.DBVersion)
}