Page MenuHomePhabricator

nuke.patch

Authored By
bzimport
Nov 21 2014, 9:34 PM
Size
582 B
Referenced Files
None
Subscribers
None

nuke.patch

Index: maintenance/nukePage.inc
===================================================================
--- maintenance/nukePage.inc (revision 19400)
+++ maintenance/nukePage.inc (working copy)
@@ -74,6 +74,14 @@
$dbw->query( "DELETE FROM $tbl_rev WHERE rev_id IN ( $set )" );
$dbw->commit();
+
+ #TODO: see if this is a "good" page, to decrement that as well.
+ $pages = $dbw->selectField('site_stats', 'ss_total_pages');
+ $pages--;
+ $dbw->update( 'site_stats',
+ array('ss_total_pages' => $pages ),
+ array( 'ss_row_id' => 1),
+ __METHOD__ );
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3208
Default Alt Text
nuke.patch (582 B)

Event Timeline