diff --git a/src/database/Database.cpp b/src/database/Database.cpp index c3cbb886bc..990c65632f 100644 --- a/src/database/Database.cpp +++ b/src/database/Database.cpp @@ -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 @@ -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"); }