mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
2014-08-25 Vanessa Gil <vanessa.gil@artica.es>
* util/pandora_db.pl: Fixed problem deleting events. Ticket #979. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10455 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d1cc110f83
commit
fd9e03e9d8
@ -1,3 +1,8 @@
|
|||||||
|
2014-08-25 Vanessa Gil <vanessa.gil@artica.es>
|
||||||
|
|
||||||
|
* util/pandora_db.pl: Fixed problem
|
||||||
|
deleting events. Ticket #979.
|
||||||
|
|
||||||
2014-08-22 Koichiro Kikuchi <koichiro@rworks.jp>
|
2014-08-22 Koichiro Kikuchi <koichiro@rworks.jp>
|
||||||
|
|
||||||
* FreeBSD/pandora_server: Fixed bug fail to start pandora_server with
|
* FreeBSD/pandora_server: Fixed bug fail to start pandora_server with
|
||||||
|
@ -179,6 +179,7 @@ sub pandora_purgedb ($$) {
|
|||||||
my @events = get_db_rows ($dbh, 'SELECT * FROM tmetaconsole_event WHERE estado = 0 AND utimestamp < ?', $event_limit);
|
my @events = get_db_rows ($dbh, 'SELECT * FROM tmetaconsole_event WHERE estado = 0 AND utimestamp < ?', $event_limit);
|
||||||
foreach my $event (@events) {
|
foreach my $event (@events) {
|
||||||
db_process_insert($dbh, 'id_evento', 'tmetaconsole_event_history', $event);
|
db_process_insert($dbh, 'id_evento', 'tmetaconsole_event_history', $event);
|
||||||
|
db_do($dbh, "DELETE FROM tmetaconsole_event WHERE id_evento =".$event->{'id_evento'});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user