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

fix(bolt): migrate empty templates URL settings (#3856)

This commit is contained in:
Anthony Lapenna 2020-05-25 18:10:02 +12:00 committed by Anthony Lapenna
parent 01d8c90348
commit 334c015f81
2 changed files with 26 additions and 0 deletions

View file

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