Writing lastrun to config-table
This commit is contained in:
parent
56038e48ac
commit
cd8f31f03a
|
@ -99,4 +99,7 @@ function clean_database() {
|
|||
|
||||
$stmt = $db->prepare("DELETE FROM runs WHERE timestamp < ?");
|
||||
$stmt->execute(array($oldestrun));
|
||||
|
||||
$stmt = $db->prepare("UPDATE config SET value = ? WHERE conf = ?");
|
||||
$stmt->execute(array('dbclean.lastrun', $time()));
|
||||
}
|
Loading…
Reference in New Issue