r53408 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53407‎ | r53408 | r53409 >
Date:17:45, 17 July 2009
Author:catrope
Status:resolved
Tags:
Comment:
(bug 19570) Add log_user_text and log_page to tables.sql; fixes r51997
Modified paths:
  • /trunk/phase3/maintenance/tables.sql (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/tables.sql
@@ -1103,10 +1103,14 @@
11041104 -- The user who performed this action; key to user_id
11051105 log_user int unsigned NOT NULL default 0,
11061106
 1107+ -- Name of the user who performed this action
 1108+ log_user_text varchar(255) binary NOT NULL default '',
 1109+
11071110 -- Key to the page affected. Where a user is the target,
11081111 -- this will point to the user page.
11091112 log_namespace int NOT NULL default 0,
11101113 log_title varchar(255) binary NOT NULL default '',
 1114+ log_page int unsigned NULL,
11111115
11121116 -- Freeform text. Interpreted as edit history comments.
11131117 log_comment varchar(255) NOT NULL default '',
@@ -1122,6 +1126,8 @@
11231127 CREATE INDEX /*i*/user_time ON /*_*/logging (log_user, log_timestamp);
11241128 CREATE INDEX /*i*/page_time ON /*_*/logging (log_namespace, log_title, log_timestamp);
11251129 CREATE INDEX /*i*/times ON /*_*/logging (log_timestamp);
 1130+CREATE INDEX /*i*/log_user_type_time ON /*_*/logging (log_user, log_type, log_timestamp);
 1131+CREATE INDEX /*i*/log_page_id_time ON /*_*/logging (log_page,log_timestamp);
11261132
11271133
11281134 CREATE TABLE /*_*/log_search (

Follow-up revisions

RevisionCommit summaryAuthorDate
r53409Followup to r53408: change lengths of log_action and log_type too. Thanks to ...catrope17:50, 17 July 2009

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r51997Added log_user_textaaron20:05, 16 June 2009

Status & tagging log