r69186 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69185‎ | r69186 | r69187 >
Date:13:58, 8 July 2010
Author:demon
Status:ok
Tags:
Comment:
Add optional ul_value blob to updatelog so it can store more useful things
Modified paths:
  • /trunk/phase3/maintenance/archives/patch-ul_value.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-ul_value.sql
@@ -0,0 +1,4 @@
 2+-- Add the ul_value column to updatelog
 3+
 4+ALTER TABLE /*_*/updatelog
 5+ add ul_value blob;
Property changes on: trunk/phase3/maintenance/archives/patch-ul_value.sql
___________________________________________________________________
Added: svn:eol-style
16 + native
Index: trunk/phase3/maintenance/updaters.inc
@@ -176,6 +176,7 @@
177177 // 1.17
178178 array( 'add_table', 'iwlinks', 'patch-iwlinks.sql' ),
179179 array( 'add_index', 'iwlinks', 'iwl_prefix_from_title', 'patch-rename-iwl_prefix.sql' ),
 180+ array( 'add_field', 'updatelog', 'ul_value', 'patch-ul_value.sql' ),
180181 ),
181182
182183 'sqlite' => array(
@@ -205,8 +206,9 @@
206207 array( 'sqlite_setup_searchindex' ),
207208
208209 // 1.17
209 - array( 'add_table', 'iwlinks', 'patch-iwlinks.sql' ),
210 - array( 'add_index', 'iwlinks', 'iwl_prefix_from_title', 'patch-rename-iwl_prefix.sql' ),
 210+ array( 'add_table', 'iwlinks', 'patch-iwlinks.sql' ),
 211+ array( 'add_index', 'iwlinks', 'iwl_prefix_from_title', 'patch-rename-iwl_prefix.sql' ),
 212+ array( 'add_field', 'updatelog', 'ul_value', 'patch-ul_value.sql' ),
211213 ),
212214 );
213215
Index: trunk/phase3/maintenance/tables.sql
@@ -1311,7 +1311,8 @@
13121312
13131313 -- A table to log updates, one text key row per update.
13141314 CREATE TABLE /*_*/updatelog (
1315 - ul_key varchar(255) NOT NULL PRIMARY KEY
 1315+ ul_key varchar(255) NOT NULL PRIMARY KEY,
 1316+ ul_value blob
13161317 ) /*$wgDBTableOptions*/;
13171318
13181319

Follow-up revisions

RevisionCommit summaryAuthorDate
r69194Followup r69186, need to specify column name heredemon18:35, 8 July 2010

Status & tagging log