Ticket #5286: mythtv-5286-use_IsNewDatabase_everywhere.patch
File mythtv-5286-use_IsNewDatabase_everywhere.patch, 1.0 KB (added by , 16 years ago) |
---|
-
libs/libmythtv/dbcheck.cpp
614 614 return true; 615 615 } 616 616 617 if ( dbver == "")617 if (DBUtil::IsNewDatabase()) 618 618 { 619 619 if (!InitializeDatabase()) 620 620 return false; -
libs/libmyth/mythcontext.cpp
30 30 #include "util-x11.h" 31 31 #include "mythsocket.h" 32 32 #include "themeinfo.h" 33 #include "dbutil.h" 33 34 34 35 #include "libmythui/mythmainwindow.h" 35 36 #include "libmythupnp/mythxmlclient.h" … … 3546 3547 3547 3548 3548 3549 // No current DBSchemaVer? Empty database, so upgrade to create tables 3549 if ( dbver.isEmpty() || dbver == "0")3550 if (DBUtil::IsNewDatabase()) 3550 3551 { 3551 3552 VERBOSE(VB_GENERAL, "No current database version. Auto upgrading"); 3552 3553 return MYTH_SCHEMA_UPGRADE;