Delete old tgraph_source data
This commit is contained in:
parent
2689213fdf
commit
61fd2c6d61
|
@ -431,6 +431,9 @@ sub pandora_purgedb ($$) {
|
||||||
WHERE date < CURDATE() - $conf->{'_num_past_special_days'} AND date > '0001-01-01'");
|
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)");
|
||||||
}
|
}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
Loading…
Reference in New Issue