mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2025-03-05 00:40:18 +01:00
Clear stored usernames from postgres in multidevice upgrade
This commit is contained in:
parent
7b1c320295
commit
a829a887f0
1 changed files with 6 additions and 0 deletions
|
@ -81,6 +81,12 @@ func init() {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Clear all usernames, the users need to relogin anyway.
|
||||
_, err = tx.Exec(`UPDATE "user" SET username=null`)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}}
|
||||
|
|
Loading…
Add table
Reference in a new issue