diff --git a/src/libs/database/impl/Session.cpp b/src/libs/database/impl/Session.cpp index 48d3de2e..ad86ece3 100644 --- a/src/libs/database/impl/Session.cpp +++ b/src/libs/database/impl/Session.cpp @@ -40,7 +40,7 @@ namespace Database { -#define LMS_DATABASE_VERSION 25 +#define LMS_DATABASE_VERSION 26 using Version = std::size_t; @@ -272,6 +272,12 @@ CREATE TABLE "user_backup" ( // User's AuthMode _session.execute("ALTER TABLE user ADD auth_mode INTEGER NOT NULL DEFAULT(" + std::to_string(static_cast(User::defaultAuthMode)) + ")"); } + else if (version == 25) + { + // Better cover detection + // Just increment the scan version of the settings to make the next scheduled scan rescan everything + ScanSettings::get(*this).modify()->incScanVersion(); + } else { LMS_LOG(DB, ERROR) << "Database version " << version << " cannot be handled using migration";