Merge branch '1089-Incluir-borrado-de-entradas-en-tgraph_source-al-pandora_db-dev' into 'develop'

Delete old tgraph_source data

See merge request !806
This commit is contained in:
vgilc 2017-09-11 09:58:09 +02:00
commit 49f7168e1b
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)");
}
###############################################################################