mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(api): data migration to update default Portainer authorizations (#3314)
This commit is contained in:
parent
310b6b34da
commit
0175490161
3 changed files with 31 additions and 1 deletions
|
@ -287,5 +287,13 @@ func (m *Migrator) Migrate() error {
|
|||
}
|
||||
}
|
||||
|
||||
// Portainer next
|
||||
if m.currentDBVersion < 21 {
|
||||
err := m.updateUsersToDBVersion21()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return m.versionService.StoreDBVersion(portainer.DBVersion)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue