Ticket #5286: mythtv-5286-fail_upgrade_on_unrecognized_DBSchemaVer.patch

File mythtv-5286-fail_upgrade_on_unrecognized_DBSchemaVer.patch, 546 bytes (added by sphery <mtdean@…>, 12 years ago)

Fail upgrade on unrecognized DBSchemaVer

  • libs/libmythtv/dbcheck.cpp

     
    621621        dbver = "1112";
    622622    }
    623623
     624    if (dbver.isEmpty() || dbver.toInt() <  1027)
     625    {
     626        VERBOSE(VB_IMPORTANT, "Unrecognized database schema version. "
     627                              "Unable to upgrade database.");
     628        return false;
     629    }
     630
    624631    if (dbver == "1027")
    625632    {
    626633        const QString updates[] = {