fix(wallet)_: update default wallet account's color to blue for old mobile user

This commit is contained in:
frank 2024-07-26 18:38:13 +08:00 committed by Siddarth Kumar
parent 18885b3663
commit 179dea9907
1 changed files with 7 additions and 0 deletions

View File

@ -132,6 +132,13 @@ func FixMissingKeyUIDForAccounts(sqlTx *sql.Tx) error {
log.Error("Migrating accounts: failed to update key_uid/derived_from", "err", err.Error()) log.Error("Migrating accounts: failed to update key_uid/derived_from", "err", err.Error())
return err return err
} }
// fix the default wallet account color issue https://github.com/status-im/status-mobile/issues/20476
// we don't care the other type of account's color
_, err = sqlTx.Exec(`UPDATE accounts SET color = 'blue',emoji='🐳' WHERE wallet = 1`)
if err != nil {
log.Error("Migrating accounts: failed to update default wallet account's color to blue", "err", err.Error())
return err
}
return nil return nil
} }