r19613 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19612‎ | r19613 | r19614 >
Date:01:28, 24 January 2007
Author:brion
Status:old
Tags:
Comment:
Fix up paths so you can call these scripts from base dir
Also fixed an 'old' table reference which should now be 'text' ...
Modified paths:
  • /trunk/phase3/maintenance/storage/compressOld.php (modified) (history)
  • /trunk/phase3/maintenance/storage/dumpRev.php (modified) (history)
  • /trunk/phase3/maintenance/storage/moveToExternal.php (modified) (history)
  • /trunk/phase3/maintenance/storage/resolveStubs.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/storage/compressOld.php
@@ -31,7 +31,7 @@
3232 */
3333
3434 $optionsWithArgs = array( 't', 'c', 's', 'f', 'h', 'extdb', 'endid', 'e' );
35 -require_once( "../commandLine.inc" );
 35+require_once( dirname(__FILE__) . '/../commandLine.inc' );
3636 require_once( "compressOld.inc" );
3737
3838 if( !function_exists( "gzdeflate" ) ) {
Index: trunk/phase3/maintenance/storage/moveToExternal.php
@@ -5,7 +5,7 @@
66 if ( !defined( 'MEDIAWIKI' ) ) {
77 $optionsWithArgs = array( 'm', 's' );
88
9 - require_once( '../commandLine.inc' );
 9+ require_once( dirname(__FILE__) . '/../commandLine.inc' );
1010 require_once( 'ExternalStoreDB.php' );
1111 require_once( 'resolveStubs.php' );
1212
Index: trunk/phase3/maintenance/storage/resolveStubs.php
@@ -5,7 +5,7 @@
66 if ( !defined( 'MEDIAWIKI' ) ) {
77 $optionsWithArgs = array( 'm' );
88
9 - require_once( '../commandLine.inc' );
 9+ require_once( dirname(__FILE__) . '/../commandLine.inc' );
1010 require_once( 'includes/ExternalStoreDB.php' );
1111
1212 resolveStubs();
Index: trunk/phase3/maintenance/storage/dumpRev.php
@@ -1,8 +1,9 @@
22 <?php
33
4 -require_once( 'commandLine.inc' );
 4+require_once( dirname(__FILE__) . '/../commandLine.inc' );
 5+
56 $dbr = wfGetDB( DB_SLAVE );
6 -$row = $dbr->selectRow( 'old', array( 'old_flags', 'old_text' ), array( 'old_id' => $args[0] ) );
 7+$row = $dbr->selectRow( 'text', array( 'old_flags', 'old_text' ), array( 'old_id' => $args[0] ) );
78 $obj = unserialize( $row->old_text );
89
910 if ( get_class( $obj ) == 'concatenatedgziphistoryblob' ) {