On conserve les logs dans la base un peu plus longtemps (5jours)

darcs-hash:20070129194645-6d78a-5aec4973ed248fa37ffee5323025f450f697d53c.gz
This commit is contained in:
pessoles 2007-01-29 20:46:45 +01:00
parent 514ea61b2c
commit 0a1f4dac53

View file

@ -3,10 +3,10 @@
-----------------------------------------------------------------
-- effacement des vieux enregistrements
DELETE FROM upload where date< timestamp 'now' - interval '2 days';
DELETE FROM virus where date< timestamp 'now' - interval '2 days';
DELETE FROM flood where date< timestamp 'now' - interval '2 days';
DELETE FROM p2p where date< timestamp 'now' - interval '2 days';
DELETE FROM upload where date< timestamp 'now' - interval '5 days';
DELETE FROM virus where date< timestamp 'now' - interval '5 days';
DELETE FROM flood where date< timestamp 'now' - interval '5 days';
DELETE FROM p2p where date< timestamp 'now' - interval '5 days';
-- suppression complète des entrées
VACUUM;