projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3a9f97d
)
Prune.php
author
Alan Knowles
<alan@roojs.com>
Thu, 4 Oct 2018 04:38:56 +0000
(12:38 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 4 Oct 2018 04:38:56 +0000
(12:38 +0800)
Prune.php
patch
|
blob
|
history
diff --git
a/Prune.php
b/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);
*/
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");
$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";