Add log_user_text. Useful for log dumps, which are needed by rev_deleted
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 18 Sep 2008 18:26:54 +0000 (18:26 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 18 Sep 2008 18:26:54 +0000 (18:26 +0000)
maintenance/archives/patch-log_user_text.sql [new file with mode: 0644]
maintenance/tables.sql
maintenance/updaters.inc

diff --git a/maintenance/archives/patch-log_user_text.sql b/maintenance/archives/patch-log_user_text.sql
new file mode 100644 (file)
index 0000000..b455b21
--- /dev/null
@@ -0,0 +1,2 @@
+ALTER TABLE /*$wgDBprefix*/logging 
+       ADD log_user_text varchar(255) binary NOT NULL default '';
index d3512c5..662d03b 100644 (file)
@@ -1076,7 +1076,9 @@ CREATE TABLE /*$wgDBprefix*/logging (
   log_timestamp binary(14) NOT NULL default '19700101000000',
   
   -- The user who performed this action; key to user_id
-  log_user int unsigned NOT NULL default 0,
+  log_user int unsigned NOT NULL default 0, 
+  -- Text username or IP address of the editor.
+  log_user_text varchar(255) binary NOT NULL default '',
   
   -- Key to the page affected. Where a user is the target,
   -- this will point to the user page.
index cd12da2..dc30dbc 100644 (file)
@@ -145,8 +145,9 @@ $wgMysqlUpdates = array(
        array( 'update_password_format' ),
        
        // 1.14
-       array( 'add_field', 'site_stats',     'ss_active_users',  'patch-ss_active_users.sql' ),
-       array( 'do_active_users_init' )
+       array( 'add_field', 'site_stats',    'ss_active_users',  'patch-ss_active_users.sql' ),
+       array( 'do_active_users_init' ),
+       array( 'add_field', 'logging',       'log_user_text',    'patch-log_user_text.sql' ),
 );