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
Expand Up @@ -2373,15 +2373,15 @@ NULL
const char *updates[] = {
// Create a global enable/disable instead of one per-host
// Any hosts previously running it mean all hosts do now
"INSERT INTO `settings` (`value`, `hostname`, `data`),"
"INSERT INTO `settings` (`value`, `hostname`, `data`)"
" SELECT 'HardwareProfileEnaled',"
" NULL,"
" IF((SELECT COUNT(1)"
" FROM `settings`"
" WHERE `value` = 'HardwareProfileLastUpdated' > 0),"
" 1, 0);",
// Create 'lastrun' times using existing data in settings
"INSERT INTO `housekeeper` (`tag`, `hostname`, `lastrun`)"
"INSERT INTO `housekeeping` (`tag`, `hostname`, `lastrun`)"
" SELECT 'HardwareProfiler',"
" `hostname`,"
" `data`"
Expand Down

0 comments on commit dc250b2

Please sign in to comment.