fix(Core/DBUpdater): disable exception throwing for dryrun (#22610)

This commit is contained in:
sudlud
2025-08-02 16:05:40 +02:00
committed by GitHub
parent 8a5098861e
commit 5717cd358c

View File

@@ -517,7 +517,8 @@ void DBUpdater<T>::ApplyFile(DatabaseWorkerPool<T>& pool, std::string const& hos
"If you are a developer, please fix your sql query.",
path.generic_string(), pool.GetConnectionInfo()->database);
throw UpdateException("update failed");
if (!sConfigMgr->isDryRun())
throw UpdateException("update failed");
}
}