Skip to content

Commit

Permalink
Fix schema update for HardwareProfile housekeeping task.
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerrp committed Jun 2, 2013
1 parent 0b67590 commit dc250b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/dbcheck.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2373,15 +2373,15 @@ NULL
const char *updates[] = { const char *updates[] = {
// Create a global enable/disable instead of one per-host // Create a global enable/disable instead of one per-host
// Any hosts previously running it mean all hosts do now // Any hosts previously running it mean all hosts do now
"INSERT INTO `settings` (`value`, `hostname`, `data`)," "INSERT INTO `settings` (`value`, `hostname`, `data`)"
" SELECT 'HardwareProfileEnaled'," " SELECT 'HardwareProfileEnaled',"
" NULL," " NULL,"
" IF((SELECT COUNT(1)" " IF((SELECT COUNT(1)"
" FROM `settings`" " FROM `settings`"
" WHERE `value` = 'HardwareProfileLastUpdated' > 0)," " WHERE `value` = 'HardwareProfileLastUpdated' > 0),"
" 1, 0);", " 1, 0);",
// Create 'lastrun' times using existing data in settings // Create 'lastrun' times using existing data in settings
"INSERT INTO `housekeeper` (`tag`, `hostname`, `lastrun`)" "INSERT INTO `housekeeping` (`tag`, `hostname`, `lastrun`)"
" SELECT 'HardwareProfiler'," " SELECT 'HardwareProfiler',"
" `hostname`," " `hostname`,"
" `data`" " `data`"
Expand Down

0 comments on commit dc250b2

Please sign in to comment.