[mythtv-commits] mythtv commit: r15579 - in trunk/mythtv by cpinkham

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Fri Jan 25 05:44:22 UTC 2008


      Author: cpinkham
        Date: 2008-01-25 05:44:22 +0000 (Fri, 25 Jan 2008)
New Revision: 15579
   Changeset: http://cvs.mythtv.org/trac/changeset/15579

Modified:

   trunk/mythtv/libs/libmythtv/dbcheck.cpp
   trunk/mythtv/programs/mythtv-setup/main.cpp

Log:

Check the MySQL version before attempting to upgrade the main DB schema.
If the user is not running MySQL v5.x, then the program will exit giving the
user the option to upgrade MySQL or downgrade MythTV.
Patch by Michael T. Dean, modified slightly by me.

As part of this, clean up some of the MSqlQuery declarations in
UpgradeTVDatabaseSchema, we don't really need a new instance and DB
connection for each query in this function.

Also modify mythtv-setup to check the result of UpgradeTVDatabaseSchema
the same way that mythbackend and mythfrontend do, rather than blindly
continuing assuming the DB was upgraded.






More information about the mythtv-commits mailing list