Skip to content

Commit

Permalink
wallet_db migration fixed from ver<20
Browse files Browse the repository at this point in the history
  • Loading branch information
valdok committed Nov 15, 2024
1 parent 9bffc3d commit 8fbb09c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wallet/core/wallet_db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1780,7 +1780,7 @@ namespace beam::wallet
}
}

void MigrateFrom32(sqlite3* db)
void MigrateFrom32_After20(sqlite3* db)
{
assert(db != nullptr);

Expand Down Expand Up @@ -2478,7 +2478,8 @@ namespace beam::wallet

case DbVersion32:
BEAM_LOG_INFO() << "Converting DB from format 32...";
MigrateFrom32(walletDB->_db);
if (version > DbVersion20)
MigrateFrom32_After20(walletDB->_db);

case DbVersion33:
BEAM_LOG_INFO() << "Converting DB from format 33...";
Expand Down

0 comments on commit 8fbb09c

Please sign in to comment.