Skip to content

Commit

Permalink
fix(daemon): force wallet recreation.
Browse files Browse the repository at this point in the history
In order to create wallets in the new database we will have to re create the wallets there. Users that already had their wallet in the wrong server db need to recreate
  • Loading branch information
juligasa committed Nov 27, 2024
1 parent c694f1f commit 822d702
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/storage/storage_migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ var migrations = []migration{

return scheduleReindex(conn)
}},
{Version: "2024-11-27.01", Run: func(_ *Store, conn *sqlite.Conn) error {
return sqlitex.ExecScript(conn, sqlfmt(`DELETE FROM wallets`)) // User will have to recreate the wallet
}},
}

func scheduleReindex(conn *sqlite.Conn) error {
Expand Down

0 comments on commit 822d702

Please sign in to comment.