Writing lastrun to config-table

This commit is contained in:
Jeroen De Meerleer 2018-09-14 12:23:22 +02:00
parent 56038e48ac
commit cd8f31f03a
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 3 additions and 0 deletions

View File

@ -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()));
}