forked from MirrorHub/mautrix-whatsapp
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 {
|
if err != nil {
|
||||||
return err
|
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
|
return nil
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue