From 4c587ab3c4f991dea37558a5b507e28bd176c31a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 28 Mar 2006 21:50:33 +0000 Subject: [PATCH] // 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 diff --git a/maintenance/refreshImageCount.php b/maintenance/refreshImageCount.php new file mode 100644 index 0000000000..797ceddc61 --- /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 -- 2.20.1