mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-04-28 00:44:49 +00:00
fix: missing updated data version
This commit is contained in:
parent
59c1a49ee7
commit
a2c15ac332
3 changed files with 3 additions and 3 deletions
lib
|
@ -162,7 +162,7 @@ void main() async {
|
|||
int dbVersion = DB.instance.get<dynamic>(
|
||||
boxName: DB.boxNameDBInfo, key: "hive_data_version") as int? ??
|
||||
0;
|
||||
if (dbVersion < Constants.currentHiveDbVersion) {
|
||||
if (dbVersion < Constants.currentDataVersion) {
|
||||
try {
|
||||
await DbVersionMigrator().migrate(
|
||||
dbVersion,
|
||||
|
|
|
@ -55,7 +55,7 @@ class _DesktopLoginViewState extends ConsumerState<DesktopLoginView> {
|
|||
int dbVersion = DB.instance.get<dynamic>(
|
||||
boxName: DB.boxNameDBInfo, key: "hive_data_version") as int? ??
|
||||
0;
|
||||
if (dbVersion < Constants.currentHiveDbVersion) {
|
||||
if (dbVersion < Constants.currentDataVersion) {
|
||||
try {
|
||||
await DbVersionMigrator().migrate(
|
||||
dbVersion,
|
||||
|
|
|
@ -42,7 +42,7 @@ abstract class Constants {
|
|||
// Enable Logger.print statements
|
||||
static const bool disableLogger = false;
|
||||
|
||||
static const int currentHiveDbVersion = 9;
|
||||
static const int currentDataVersion = 10;
|
||||
|
||||
static const int rescanV1 = 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue