Phpdoc comments and place holder. Part of the subpackage "maintenance", archives...
[lhc/web/wiklou.git] / maintenance / update2.php
1 <?php
2 /**
3 * This script was used to convert the live Wikimedia wikis from 1.2 to 1.3
4 * @package MediaWiki
5 * @subpackage Maintenance
6 */
7
8 /** */
9 $maintenance = "/home/wikipedia/common/php-new/maintenance";
10 require_once( "$maintenance/liveCmdLine.inc" );
11 require_once( "$maintenance/InitialiseMessages.inc" );
12 require_once( "$maintenance/updaters.inc" );
13 require_once( "$maintenance/archives/moveCustomMessages.inc" );
14 require_once( "$maintenance/convertLinks.inc" );
15 require_once( "$maintenance/../install-utils.inc" );
16
17 $wgDatabase = Database::newFromParams( $wgDBserver, $wgDBadminuser, $wgDBadminpassword, $wgDBname );
18 do_ipblocks_update(); flush();
19 do_interwiki_update(); flush();
20 do_index_update(); flush();
21 do_linkscc_update(); flush();
22 do_linkscc_1_3_update(); flush();
23 do_hitcounter_update(); flush();
24 do_recentchanges_update(); flush();
25 do_user_real_name_update(); flush();
26 do_querycache_update(); flush();
27 do_objectcache_update(); flush();
28 do_categorylinks_update(); flush();
29 initialiseMessages(); flush();
30 moveCustomMessages( 1 );
31
32 if ( file_exists( $wgReadOnlyFile ) ) {
33 $alreadyExists = true;
34 } else {
35 $file = fopen( $wgReadOnlyFile, "w" );
36 fwrite( $file, "The database is temporarily locked for a software upgrade\n" );
37 fclose( $file );
38 $alreadyExists = false;
39 }
40
41 convertLinks();
42
43 if ( !$alreadyExists ) {
44 unlink( $wgReadOnlyFile );
45 }
46
47 ?>