Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3641
nuke.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 9:34 PM
2014-11-21 21:34:17 (UTC+0)
Size
582 B
Referenced Files
None
Subscribers
None
nuke.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3208
Default Alt Text
nuke.patch (582 B)
Attached To
Mode
T10702: maintenance/nukePage.php doesn't update statistics
Attached
Detach File
Event Timeline
Log In to Comment