Ticket #5286: mythtv-5286-use_IsNewDatabase_everywhere-20080703.patch
File mythtv-5286-use_IsNewDatabase_everywhere-20080703.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
29 29 #include "util-x11.h" 30 30 #include "mythsocket.h" 31 31 #include "themeinfo.h" 32 #include "dbutil.h" 32 33 33 34 #include "libmythdb/mythdb.h" 34 35 #include "libmythdb/mythdirs.h" … … 1975 1976 1976 1977 1977 1978 // No current DBSchemaVer? Empty database, so upgrade to create tables 1978 if ( dbver.isEmpty() || dbver == "0")1979 if (DBUtil::IsNewDatabase()) 1979 1980 { 1980 1981 VERBOSE(VB_GENERAL, "No current database version. Auto upgrading"); 1981 1982 return MYTH_SCHEMA_UPGRADE;