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:
vgilc 2014-08-25 09:54:22 +00:00
parent d1cc110f83
commit fd9e03e9d8
2 changed files with 6 additions and 0 deletions

View File

@ -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>
* FreeBSD/pandora_server: Fixed bug fail to start pandora_server with

View File

@ -179,6 +179,7 @@ sub pandora_purgedb ($$) {
my @events = get_db_rows ($dbh, 'SELECT * FROM tmetaconsole_event WHERE estado = 0 AND utimestamp < ?', $event_limit);
foreach my $event (@events) {
db_process_insert($dbh, 'id_evento', 'tmetaconsole_event_history', $event);
db_do($dbh, "DELETE FROM tmetaconsole_event WHERE id_evento =".$event->{'id_evento'});
}
}