Prune.php
authorAlan Knowles <alan@roojs.com>
Thu, 4 Oct 2018 04:38:56 +0000 (12:38 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 4 Oct 2018 04:38:56 +0000 (12:38 +0800)
Prune.php

index 625e7d2..4254065 100644 (file)
--- a/Prune.php
+++ b/Prune.php
@@ -79,6 +79,9 @@ class Pman_Core_Prune extends Pman
          */
         
         DB_DataObject::debugLevel(1);
+        $f = DB_DataObject::Factory('Events');
+        $before = $f->count();
+
         $f = DB_DataObject::Factory('Events');
         $f->selectAdd();
         $f->selectAdd("on_id, on_table, min(id) as min_id, max(id) as max_id, count(*) as mm");
@@ -104,7 +107,9 @@ class Pman_Core_Prune extends Pman
             ");
         }
         
-        
+        $f = DB_DataObject::Factory('Events');
+        $after = $f->count();
+        echo "DELETED : " . ($before - $after) . " records\n";