From 179dea9907fe63f28da26a94391bd656bf10dd0a Mon Sep 17 00:00:00 2001 From: frank Date: Fri, 26 Jul 2024 18:38:13 +0800 Subject: [PATCH] fix(wallet)_: update default wallet account's color to blue for old mobile user --- appdatabase/database.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/appdatabase/database.go b/appdatabase/database.go index 13a138a05..dbcce7424 100644 --- a/appdatabase/database.go +++ b/appdatabase/database.go @@ -132,6 +132,13 @@ func FixMissingKeyUIDForAccounts(sqlTx *sql.Tx) error { log.Error("Migrating accounts: failed to update key_uid/derived_from", "err", err.Error()) 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 }