r5953 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r5952‎ | r5953 | r5954 >
Date:21:59, 17 October 2004
Author:vibber
Status:old
Tags:
Comment:
1.2 to 1.3 updater script from wikipedia. Not exactly useful still. :D
Modified paths:
  • /trunk/phase3/maintenance/update2.php (deleted) (history)

Diff [purge]

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

Status & tagging log