Projects
Multimedia
mythtv-0_28
mythtv-downgrade-from-unicable-support.diff
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mythtv-downgrade-from-unicable-support.diff of Package mythtv-0_28
diff -up ./libs/libmythtv/dbcheck.cpp.orig ./libs/libmythtv/dbcheck.cpp --- ./libs/libmythtv/dbcheck.cpp.orig 2012-05-29 22:24:15.778845743 +0200 +++ ./libs/libmythtv/dbcheck.cpp 2012-05-29 22:27:39.511851714 +0200 @@ -1948,6 +1948,25 @@ NULL return false; } + if (dbver == "1300") + { + LOG(VB_GENERAL, LOG_CRIT, "Downgrading to MythTV schema version 1299"); + QString queryStr = + "ALTER TABLE diseqc_tree DROP COLUMN scr_userband," + " DROP COLUMN scr_frequency," + " DROP COLUMN scr_pin"; + MSqlQuery query(MSqlQuery::InitCon()); + query.prepare(queryStr); + if (!query.exec()) + { + MythDB::DBError("Could not perform downgrade for '1299'", query); + return false; + } + + if (!UpdateDBVersionNumber("1299", dbver)) + return false; + } + return true; }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.