From 1e7a73829a6609cde4db36220424567ad621e62b Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Thu, 24 Mar 2022 19:23:35 +0100 Subject: [PATCH] added missing timestamp to pandora_db process on historical database --- pandora_server/util/pandora_db.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index f4fe7f88d7..617db0ab49 100755 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -1079,6 +1079,10 @@ sub pandoradb_history ($$) { log_message ('', "\n"); } + # Update tconfig with last time of database maintance time (now) + db_do ($dbh, "DELETE FROM tconfig WHERE token = 'db_maintance'"); + db_do ($dbh, "INSERT INTO tconfig (token, value) VALUES ('db_maintance', '".time()."')"); + log_message ('', "Ending at ". strftime ("%Y-%m-%d %H:%M:%S", localtime()) . "\n"); }