Merge branch 'ent-8702-no-se-actualiza-token-db_maintenance-en-la-db-de-historico-al-pasar-el-pandora_db' into 'develop'

added missing timestamp to pandora_db process on historical database

See merge request artica/pandorafms!4780
This commit is contained in:
Daniel Rodriguez 2022-03-30 07:43:53 +00:00
commit d2779800e8
1 changed files with 4 additions and 0 deletions

View File

@ -1082,6 +1082,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");
}