Permalink
Browse files

Fix schema update for HardwareProfile housekeeping task.

  • Loading branch information...
wagnerrp committed Jun 2, 2013
1 parent 0b67590 commit dc250b2449254c0a4a59a36deb4e17a84d7d0e4d
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythtv/dbcheck.cpp
@@ -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`"

0 comments on commit dc250b2

Please sign in to comment.