fix notice
[mediawiki.git] / maintenance / rebuildall.php
blobd9ec307c06c0e7f08f9086ff1681ef8a47e791a1
1 <?php
3 # Rebuild link tracking tables from scratch. This takes several
4 # hours, depending on the database size and server configuration.
6 require_once( "commandLine.inc" );
8 #require_once( "rebuildlinks.inc" );
9 require_once( "refreshlinks.inc" );
10 require_once( "rebuildtextindex.inc" );
11 require_once( "rebuildrecentchanges.inc" );
13 $wgDBuser = $wgDBadminuser;
14 $wgDBpassword = $wgDBadminpassword;
16 # Doesn't work anymore
17 # rebuildLinkTables();
19 # Use the slow incomplete one instead. It's designed to work in the background
20 #refreshLinks( 1 );
22 dropTextIndex();
23 rebuildTextIndex();
24 createTextIndex();
26 rebuildRecentChangesTablePass1();
27 rebuildRecentChangesTablePass2();
29 print "Done.\n";
30 exit();