Skip to content

Commit

Permalink
Schema upgrade 21
Browse files Browse the repository at this point in the history
  • Loading branch information
sisuresh committed Sep 20, 2023
1 parent ecb24df commit f390818
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/database/Database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ bool Database::gDriversRegistered = false;

// smallest schema version supported
static unsigned long const MIN_SCHEMA_VERSION = 13;
static unsigned long const SCHEMA_VERSION = 20;
static unsigned long const SCHEMA_VERSION = 21;

// These should always match our compiled version precisely, since we are
// using a bundled version to get access to carray(). But in case someone
Expand Down Expand Up @@ -237,6 +237,9 @@ Database::applySchemaUpgrade(unsigned long vers)
mApp.getPersistentState().setRebuildForType(CONTRACT_DATA);
mApp.getPersistentState().setRebuildForType(CONTRACT_CODE);
break;
case 21:
mApp.getPersistentState().setRebuildForType(EXPIRATION);
break;
default:
throw std::runtime_error("Unknown DB schema version");
}
Expand Down

0 comments on commit f390818

Please sign in to comment.