Add optional ul_value blob to updatelog so it can store more useful things
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 8 Jul 2010 13:58:42 +0000 (13:58 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 8 Jul 2010 13:58:42 +0000 (13:58 +0000)
maintenance/archives/patch-ul_value.sql [new file with mode: 0644]
maintenance/tables.sql
maintenance/updaters.inc

diff --git a/maintenance/archives/patch-ul_value.sql b/maintenance/archives/patch-ul_value.sql
new file mode 100644 (file)
index 0000000..50f4e9a
--- /dev/null
@@ -0,0 +1,4 @@
+-- Add the ul_value column to updatelog
+
+ALTER TABLE /*_*/updatelog
+  add ul_value blob;
index fe6f265..99ddb77 100644 (file)
@@ -1311,7 +1311,8 @@ CREATE UNIQUE INDEX /*i*/pp_page_propname ON /*_*/page_props (pp_page,pp_propnam
 
 -- A table to log updates, one text key row per update.
 CREATE TABLE /*_*/updatelog (
-  ul_key varchar(255) NOT NULL PRIMARY KEY
+  ul_key varchar(255) NOT NULL PRIMARY KEY,
+  ul_value blob
 ) /*$wgDBTableOptions*/;
 
 
index a642a45..9ea5057 100644 (file)
@@ -176,6 +176,7 @@ $wgUpdates = array(
                // 1.17
                array( 'add_table', 'iwlinks',                           'patch-iwlinks.sql' ),
                array( 'add_index', 'iwlinks', 'iwl_prefix_from_title',  'patch-rename-iwl_prefix.sql' ),
+               array( 'add_field', 'updatelog', 'ul_value',              'patch-ul_value.sql' ),
        ),
 
        'sqlite' => array(
@@ -205,8 +206,9 @@ $wgUpdates = array(
                array( 'sqlite_setup_searchindex' ),
 
                // 1.17
-               array( 'add_table', 'iwlinks',                           'patch-iwlinks.sql' ),
-               array( 'add_index', 'iwlinks', 'iwl_prefix_from_title',  'patch-rename-iwl_prefix.sql' ),
+               array( 'add_table', 'iwlinks',                            'patch-iwlinks.sql' ),
+               array( 'add_index', 'iwlinks',   'iwl_prefix_from_title', 'patch-rename-iwl_prefix.sql' ),
+               array( 'add_field', 'updatelog', 'ul_value',              'patch-ul_value.sql' ),
        ),
 );