2004-02-18 02:15:00 +00:00
|
|
|
<?php
|
2004-09-03 20:33:01 +00:00
|
|
|
/**
|
|
|
|
|
* Rebuild link tracking tables from scratch. This takes several
|
|
|
|
|
* hours, depending on the database size and server configuration.
|
WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>
Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage
One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
|
|
|
*
|
|
|
|
|
* @file
|
2004-09-03 20:33:01 +00:00
|
|
|
* @todo document
|
WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>
Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage
One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
|
|
|
* @ingroup Maintenance
|
2004-09-03 20:33:01 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/** */
|
2004-06-15 15:18:50 +00:00
|
|
|
require_once( "commandLine.inc" );
|
|
|
|
|
|
|
|
|
|
#require_once( "rebuildlinks.inc" );
|
2004-08-14 19:23:51 +00:00
|
|
|
require_once( "refreshLinks.inc" );
|
2004-06-15 15:18:50 +00:00
|
|
|
require_once( "rebuildtextindex.inc" );
|
|
|
|
|
require_once( "rebuildrecentchanges.inc" );
|
2003-05-02 22:55:37 +00:00
|
|
|
|
2008-03-14 04:39:18 +00:00
|
|
|
$dbclass = 'Database' . ucfirst( $wgDBtype ) ;
|
|
|
|
|
$database = new $dbclass( $wgDBserver, $wgDBadminuser, $wgDBadminpassword, $wgDBname );
|
|
|
|
|
|
|
|
|
|
if ($wgDBtype == 'mysql') {
|
|
|
|
|
print "** Rebuilding fulltext search index (if you abort this will break searching; run this script again to fix):\n";
|
|
|
|
|
dropTextIndex( $database );
|
|
|
|
|
rebuildTextIndex( $database );
|
|
|
|
|
createTextIndex( $database );
|
|
|
|
|
}
|
2004-08-11 09:02:20 +00:00
|
|
|
|
|
|
|
|
print "\n\n** Rebuilding recentchanges table:\n";
|
2007-12-20 02:50:16 +00:00
|
|
|
rebuildRecentChangesTable();
|
2003-05-02 22:55:37 +00:00
|
|
|
|
2004-06-15 15:18:50 +00:00
|
|
|
# Doesn't work anymore
|
|
|
|
|
# rebuildLinkTables();
|
|
|
|
|
|
|
|
|
|
# Use the slow incomplete one instead. It's designed to work in the background
|
2005-09-17 07:52:33 +00:00
|
|
|
print "\n\n** Rebuilding links tables -- this can take a long time. It should be safe to abort via ctrl+C if you get bored.\n";
|
2004-08-11 09:02:20 +00:00
|
|
|
refreshLinks( 1 );
|
2003-05-02 22:55:37 +00:00
|
|
|
|
|
|
|
|
print "Done.\n";
|
2009-04-06 14:41:33 +00:00
|
|
|
exit(0);
|
2003-05-02 22:55:37 +00:00
|
|
|
|
2007-06-29 01:19:14 +00:00
|
|
|
|