r51583 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51582‎ | r51583 | r51584 >
Date:07:11, 8 June 2009
Author:catrope
Status:ok
Tags:
Comment:
SCHEMA CHANGE: adding rd_interwiki patch from bug 14418. Actual use of this schema change will follow later
Modified paths:
  • /trunk/phase3/maintenance/archives/patch-rd_interwiki.sql (added) (history)
  • /trunk/phase3/maintenance/tables.sql (modified) (history)
  • /trunk/phase3/maintenance/updaters.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/archives/patch-rd_interwiki.sql
@@ -0,0 +1,6 @@
 2+-- Add interwiki and fragment columns to redirect table
 3+
 4+ALTER TABLE /*$wgDBprefix*/redirect
 5+ ADD rd_interwiki varchar(32) default NULL,
 6+ ADD rd_fragment varchar(255) binary default NULL;
 7+
Property changes on: trunk/phase3/maintenance/archives/patch-rd_interwiki.sql
___________________________________________________________________
Name: svn:eol-style
18 + native
Index: trunk/phase3/maintenance/updaters.inc
@@ -175,6 +175,7 @@
176176 array( 'add_table', 'user_properties', 'patch-user_properties.sql' ),
177177 array( 'add_table', 'log_search', 'patch-log_search.sql' ),
178178 array( 'do_log_search_population' ),
 179+ array( 'add_field', 'redirect', 'rd_interwiki', 'patch-rd_interwiki.sql' ),
179180 ),
180181 );
181182
Index: trunk/phase3/maintenance/tables.sql
@@ -1191,7 +1191,9 @@
11921192 -- and deletions may refer to different page records as time
11931193 -- goes by.
11941194 rd_namespace int NOT NULL default 0,
1195 - rd_title varchar(255) binary NOT NULL default ''
 1195+ rd_title varchar(255) binary NOT NULL default '',
 1196+ rd_interwiki varchar(32) default NULL,
 1197+ rd_fragment varchar(255) binary default NULL
11961198 ) /*$wgDBTableOptions*/;
11971199
11981200 CREATE INDEX /*i*/rd_ns_title ON /*_*/redirect (rd_namespace,rd_title,rd_from);

Follow-up revisions

RevisionCommit summaryAuthorDate
r69181Followup to r51583: actually use the rd_interwiki and rd_fragment fields, in ...catrope10:49, 8 July 2010

Status & tagging log