r72708 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72707‎ | r72708 | r72709 >
Date:10:43, 10 September 2010
Author:werdna
Status:deferred (Comments)
Tags:
Comment:
svn add schema-changes/ums-conversation.sql
Modified paths:
  • /trunk/extensions/LiquidThreads/schema-changes/ums_conversation.sql (added) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/schema-changes/ums_conversation.sql
@@ -0,0 +1,10 @@
 2+-- ums_conversation
 3+-- Adds and populates the ums_conversation field, along with relevant indices.
 4+ALTER TABLE /*_*/user_message_state ADD COLUMN ums_conversation int(8) unsigned NOT NULL DEFAULT 0;
 5+
 6+CREATE INDEX /*i*/ums_user_conversation ON /*$wgDBprefix*/user_message_state (ums_user,ums_conversation);
 7+DROP INDEX /*i*/ums_user_conversation ON /*_*/user_message_state;
 8+
 9+UPDATE /*_*/user_message_state, /*_*/thread
 10+SET user_message_state.ums_conversation = if(thread.thread_ancestor, thread.thread_ancestor, thread.thread_id)
 11+WHERE ums_conversation = 0 AND thread.thread_id = user_message_state.ums_thread;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r72707More or less rewrote Special:NewMessages. Only user-visible change is that it...werdna10:13, 10 September 2010

Comments

#Comment by Nikerabbit (talk | contribs)   14:53, 11 September 2010

Misses half of the table prefixes, fixed in r72811.

Status & tagging log