[mythtv-commits] Ticket #5286: Fix initial database creation

MythTV mythtv at cvs.mythtv.org
Sat May 3 23:16:44 UTC 2008


#5286: Fix initial database creation
----------------------------------------------+-----------------------------
 Reporter:  sphery <mtdean at thirdcontact.com>  |        Owner:  ijr    
     Type:  patch                             |       Status:  new    
 Priority:  minor                             |    Milestone:  unknown
Component:  mythtv                            |      Version:  head   
 Severity:  medium                            |   Resolution:         
  Mlocked:  0                                 |  
----------------------------------------------+-----------------------------

Comment(by sphery <mtdean at thirdcontact.com>):

 mythtv-5286-fail_upgrade_on_unrecognized_DBSchemaVer.patch checks for an
 unrecognized DBSchemaVer (i.e. after InitializeDatabase, it's still empty
 or the DBSchemaVer is less than the oldest version from which we can do an
 upgrade--currently 1027).  The check for empty is mainly useful if
 mythtv-5286-use_IsNewDatabase_everywhere.patch is applied rather than
 mythtv-5286-check_for_empty_or_zero_to_call_InitializeDatabase.patch .

 Note that this patch changes the historic behavior of Myth.  Previously,
 if we did not recognize the schema version, doUpgradeTVDatabaseSchema()
 would run to completion, but the 'dbver == "..."' checks would not match,
 so it would do nothing and think the upgrade had succeeded.  This patch
 changes the behavior to prevent a user with an extremely old database
 version (or a corrupt DB with no DBSchemaVer) from running Myth since we
 can't guarantee compatibility.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/5286#comment:5>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list