Delete old tgraph_source data

This commit is contained in:
Daniel Maya 2017-09-08 13:04:19 +02:00
parent 2689213fdf
commit 61fd2c6d61
1 changed files with 3 additions and 0 deletions

View File

@ -431,6 +431,9 @@ sub pandora_purgedb ($$) {
WHERE date < CURDATE() - $conf->{'_num_past_special_days'} AND date > '0001-01-01'");
}
}
# Delete old tgraph_source data
db_do ($dbh,"DELETE FROM tgraph_source WHERE id_graph NOT IN (SELECT id_graph FROM tgraph)");
}
###############################################################################