FuelLabs/fuels-wallet

Upgrading database script can be skipped if the user lose a version

Opened this issue · 0 comments

Context

The user can lose an upgrade in this scenario.

1- User has the wallet 0.20.0
2- the wallet 0.21.0 changes the db version and introduces an upgrade script
3- the user is offline for some time and lose this release
4- the wallet 0.22.0 is released and introduces a new db version / upgrade script
5- the user gets back online and his wallet will be upgraded to 0.22.0, resulting on the script of step 3 to be not executed