From 4c587ab3c4f991dea37558a5b507e28bd176c31a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 28 Mar 2006 21:50:33 +0000 Subject: // Quickie hack; patch-ss_images.sql uses variables which don't // replicate properly. --- maintenance/refreshImageCount.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 maintenance/refreshImageCount.php (limited to 'maintenance/refreshImageCount.php') diff --git a/maintenance/refreshImageCount.php b/maintenance/refreshImageCount.php new file mode 100644 index 000000000000..797ceddc61f4 --- /dev/null +++ b/maintenance/refreshImageCount.php @@ -0,0 +1,16 @@ +selectField( 'image', 'COUNT(*)' ); + +echo "$wgDBname: setting ss_images to $count\n"; +$dbw->update( 'site_stats', + array( 'ss_images' => $count ), + array( 'ss_row_id' => 1 ) ); + +?> \ No newline at end of file -- cgit v1.2.3