Fixed artist info badly reported as matched using mbid

This commit is contained in:
emeric
2025-05-18 11:16:45 +02:00
parent cdbed46ae3
commit 61fdbf2949
2 changed files with 9 additions and 1 deletions
+8 -1
View File
@@ -35,7 +35,7 @@ namespace lms::db
{
namespace
{
static constexpr Version LMS_DATABASE_VERSION{ 88 };
static constexpr Version LMS_DATABASE_VERSION{ 89 };
}
VersionInfo::VersionInfo()
@@ -1189,6 +1189,13 @@ FROM tracklist)");
utils::executeCommand(*session.getDboSession(), "ALTER TABLE scan_settings ADD COLUMN artists_to_not_split TEXT NON NULL DEFAULT('')");
}
void migrateFromV88(Session& session)
{
// Badly populated mbid_matched fields for tracks and artist info: need to rescan everything
// Just increment the scan version of the settings to make the next scan rescan everything
utils::executeCommand(*session.getDboSession(), "UPDATE scan_settings SET scan_version = scan_version + 1");
}
bool doDbMigration(Session& session)
{
constexpr std::string_view outdatedMsg{ "Outdated database, please rebuild it (delete the .db file and restart)" };