mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#11906 Fixed pandora_db
This commit is contained in:
parent
b91798947e
commit
021c579b2b
@ -769,8 +769,8 @@ sub pandora_checkdb_integrity {
|
|||||||
|
|
||||||
# Delete orphan data from visual console.
|
# Delete orphan data from visual console.
|
||||||
log_message ('INTEGRITY', "Deleting orphan visual console items.");
|
log_message ('INTEGRITY', "Deleting orphan visual console items.");
|
||||||
db_do ($dbh, 'DELETE FROM tlayout_data WHERE id_agent NOT IN (SELECT id_agente FROM tagente)');
|
db_do ($dbh, 'DELETE FROM tlayout_data WHERE id_agent <> 0 AND id_agent NOT IN (SELECT id_agente FROM tagente)');
|
||||||
db_do ($dbh, 'DELETE FROM tlayout_data WHERE id_agente_modulo NOT IN (SELECT id_agente_modulo FROM tagente_modulo)');
|
db_do ($dbh, 'DELETE FROM tlayout_data WHERE id_agente_modulo <> 0 AND id_agente_modulo NOT IN (SELECT id_agente_modulo FROM tagente_modulo)');
|
||||||
|
|
||||||
# Delete orphan data form deleted agents.
|
# Delete orphan data form deleted agents.
|
||||||
# Clearl orphan data from dashboards
|
# Clearl orphan data from dashboards
|
||||||
|
Loading…
x
Reference in New Issue
Block a user