00001 <?php 00010 require_once( "commandLine.inc" ); 00011 00012 $dbw = wfGetDB( DB_MASTER ); 00013 00014 // Load the current value from the master 00015 $count = $dbw->selectField( 'site_stats', 'ss_images' ); 00016 00017 echo wfWikiID().": forcing ss_images to $count\n"; 00018 00019 // First set to NULL so that it changes on the master 00020 $dbw->update( 'site_stats', 00021 array( 'ss_images' => null ), 00022 array( 'ss_row_id' => 1 ) ); 00023 00024 // Now this update will be forced to go out 00025 $dbw->update( 'site_stats', 00026 array( 'ss_images' => $count ), 00027 array( 'ss_row_id' => 1 ) ); 00028 00029