mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-05-02 19:02:17 +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>(
|
int dbVersion = DB.instance.get<dynamic>(
|
||||||
boxName: DB.boxNameDBInfo, key: "hive_data_version") as int? ??
|
boxName: DB.boxNameDBInfo, key: "hive_data_version") as int? ??
|
||||||
0;
|
0;
|
||||||
if (dbVersion < Constants.currentHiveDbVersion) {
|
if (dbVersion < Constants.currentDataVersion) {
|
||||||
try {
|
try {
|
||||||
await DbVersionMigrator().migrate(
|
await DbVersionMigrator().migrate(
|
||||||
dbVersion,
|
dbVersion,
|
||||||
|
|
|
@ -55,7 +55,7 @@ class _DesktopLoginViewState extends ConsumerState<DesktopLoginView> {
|
||||||
int dbVersion = DB.instance.get<dynamic>(
|
int dbVersion = DB.instance.get<dynamic>(
|
||||||
boxName: DB.boxNameDBInfo, key: "hive_data_version") as int? ??
|
boxName: DB.boxNameDBInfo, key: "hive_data_version") as int? ??
|
||||||
0;
|
0;
|
||||||
if (dbVersion < Constants.currentHiveDbVersion) {
|
if (dbVersion < Constants.currentDataVersion) {
|
||||||
try {
|
try {
|
||||||
await DbVersionMigrator().migrate(
|
await DbVersionMigrator().migrate(
|
||||||
dbVersion,
|
dbVersion,
|
||||||
|
|
|
@ -42,7 +42,7 @@ abstract class Constants {
|
||||||
// Enable Logger.print statements
|
// Enable Logger.print statements
|
||||||
static const bool disableLogger = false;
|
static const bool disableLogger = false;
|
||||||
|
|
||||||
static const int currentHiveDbVersion = 9;
|
static const int currentDataVersion = 10;
|
||||||
|
|
||||||
static const int rescanV1 = 1;
|
static const int rescanV1 = 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue