Ticket #5314: mythtv-5314-no_blank_current_schema_version_in_log.patch

File mythtv-5314-no_blank_current_schema_version_in_log.patch, 622 bytes (added by sphery <mtdean@…>, 16 years ago)

Simple patch to put something in the logs for Current Schema Version for a new database

  • libs/libmythtv/dbcheck.cpp

     
    524524{
    525525    QString dbver = gContext->GetSetting("DBSchemaVer");
    526526
    527     VERBOSE(VB_IMPORTANT, QString("Current Schema Version: %1").arg(dbver));
     527    VERBOSE(VB_IMPORTANT, QString("Current Schema Version: %1")
     528                                  .arg(dbver.isEmpty() ? "(none)" : dbver));
    528529
    529530    if (!gContext->GetNumSetting("MythFillFixProgramIDsHasRunOnce", 0))
    530531        DataDirectProcessor::FixProgramIDs();