2012-03-08 Koichiro Kikuchi <koichiro@rworks.jp>
* util/pandora_db.pl: Fixed wrong SQL of my previous commit. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5718 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
64830409b7
commit
43c01be337
|
@ -1,3 +1,7 @@
|
||||||
|
2012-03-08 Koichiro Kikuchi <koichiro@rworks.jp>
|
||||||
|
|
||||||
|
* util/pandora_db.pl: Fixed wrong SQL of my previous commit.
|
||||||
|
|
||||||
2012-03-08 Koichiro Kikuchi <koichiro@rworks.jp>
|
2012-03-08 Koichiro Kikuchi <koichiro@rworks.jp>
|
||||||
|
|
||||||
* util/pandora_db.pl: Don't delete alerts if non-init/unknown
|
* util/pandora_db.pl: Don't delete alerts if non-init/unknown
|
||||||
|
|
|
@ -464,7 +464,7 @@ sub pandora_checkdb_consistency {
|
||||||
db_do ($dbh, 'DELETE FROM tagente_modulo WHERE disabled = 0 AND id_agente_modulo = ?', $id_agente_modulo);;
|
db_do ($dbh, 'DELETE FROM tagente_modulo WHERE disabled = 0 AND id_agente_modulo = ?', $id_agente_modulo);;
|
||||||
|
|
||||||
# Delete any alerts associated to the module
|
# Delete any alerts associated to the module
|
||||||
db_do ($dbh, 'DELETE FROM talert_template_modules WHERE id_agent_module = ? AND NOT EXISTS (SELECT id_agente_modulo FROM tagente_modulo WHERE id_agente_modulo', $id_agente_modulo);
|
db_do ($dbh, 'DELETE FROM talert_template_modules WHERE id_agent_module = ? AND NOT EXISTS (SELECT id_agente_modulo FROM tagente_modulo WHERE id_agente_modulo = ?)', $id_agente_modulo, $id_agente_modulo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print "[CHECKDB] Checking database consistency (Missing status)... \n";
|
print "[CHECKDB] Checking database consistency (Missing status)... \n";
|
||||||
|
|
Loading…
Reference in New Issue