r99499 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99498‎ | r99499 | r99500 >
Date:17:09, 11 October 2011
Author:raindrift
Status:deferred
Tags:
Comment:
Changed user_id to user for consistency with core
Followup to r99455
Modified paths:
  • /trunk/extensions/PageTriage/sql/PageTriage.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/PageTriage/sql/PageTriage.sql
@@ -2,12 +2,12 @@
33 -- mapping table for users to revisions
44 -- this information persists forever.
55 CREATE TABLE /*_*/pagetriage (
6 - ptr_user_id int UNSIGNED NOT NULL,
 6+ ptr_user int UNSIGNED NOT NULL,
77 ptr_recentchanges_id int NOT NULL,
88 ptr_timestamp varbinary(14) NOT NULL
99 ) /*$wgDBTableOptions*/;
1010
11 -CREATE UNIQUE INDEX /*i*/ptr_user_rc ON /*_*/pagetriage (ptr_user_id,ptr_recentchanges_id);
 11+CREATE UNIQUE INDEX /*i*/ptr_user_rc ON /*_*/pagetriage (ptr_user,ptr_recentchanges_id);
1212
1313 -- this stores when a page was checked. we'll be interested in that sometimes.
1414 CREATE INDEX /*i*/ptr_timestamp ON /*_*/pagetriage (ptr_timestamp);
@@ -18,9 +18,9 @@
1919 -- If it's cleared, it'll lead to edit conflicts for a few minutes but it's not a big deal.
2020 CREATE TABLE /*_*/pagetriage_checkouts (
2121 ptc_id int UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
22 - ptc_user_id int UNSIGNED NOT NULL,
 22+ ptc_user int UNSIGNED NOT NULL,
2323 ptc_recentchanges_id int NOT NULL,
2424 ptc_timestamp varbinary(14) NOT NULL
2525 ) /*$wgDBTableOptions*/;
2626
27 -CREATE UNIQUE INDEX /*i*/ptc_user_rc ON /*_*/pagetriage_checkouts (ptc_user_id,ptc_recentchanges_id);
 27+CREATE UNIQUE INDEX /*i*/ptc_user_rc ON /*_*/pagetriage_checkouts (ptc_user,ptc_recentchanges_id);

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r99455added pagetriage checkouts tableraindrift01:07, 11 October 2011

Status & tagging log