$this->dbw->query("CREATE TABLE $revision (
rev_id int(8) unsigned NOT NULL auto_increment,
rev_page int(8) unsigned NOT NULL,
+ rev_text_id int(8) unsigned NOT NULL,
rev_comment tinyblob NOT NULL default '',
rev_user int(5) unsigned NOT NULL default '0',
rev_user_text varchar(255) binary NOT NULL default '',
$add[] = array(
'rev_id' => $row->old_id,
'rev_page' => $row->cur_id,
+ 'rev_text_id' => $row->old_id,
'rev_comment' => $this->conv( $row->old_comment ),
'rev_user' => $row->old_user,
'rev_user_text' => $this->conv( $row->old_user_text ),
'log_title' => MW_UPGRADE_ENCODE,
'log_comment' => MW_UPGRADE_ENCODE,
'log_params' => MW_UPGRADE_ENCODE );
- $this->copyTable( 'archive', $tabledef, $fields );
+ $this->copyTable( 'logging', $tabledef, $fields );
}
function upgradeArchive() {
}
function renameTable( $from, $to ) {
- $this->log( 'Renaming $from to $to...' );
+ $this->log( "Renaming $from to $to..." );
$fromtable = $this->dbw->tableName( $from );
$totable = $this->dbw->tableName( $to );