1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

add missed migration for DB version 36 (#6678)

This commit is contained in:
Prabhat Khera 2022-04-06 09:07:51 +12:00 committed by GitHub
parent 7e28b3ca3f
commit e1df46b92b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 48 additions and 0 deletions

View file

@ -183,6 +183,12 @@ func (m *Migrator) Migrate() error {
}
}
if m.currentDBVersion < 36 {
migrateLog.Info("Migrating to DB 36")
if err := m.migrateDBVersionToDB36(); err != nil {
return migrationError(err, "migrateDBVersionToDB36")
}
}
err = m.versionService.StoreDBVersion(portainer.DBVersion)
if err != nil {
return migrationError(err, "StoreDBVersion")