r90829 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90828‎ | r90829 | r90830 >
Date:14:05, 26 June 2011
Author:ashley
Status:deferred
Tags:
Comment:
SocialProfile: add stats_links_submitted and stats_links_approved columns to user_stats table. These are only used by the LinkFilter extension, so you most likely don't need to care about these. Also tweaked user_stats.sql for SQLite compatibility by moving the PRIMARY KEY declaration to where it belongs and changing /*$wgDBprefix*/ to /*_*/
Modified paths:
  • /trunk/extensions/SocialProfile/UserStats/user_stats.postgres.sql (modified) (history)
  • /trunk/extensions/SocialProfile/UserStats/user_stats.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/UserStats/user_stats.postgres.sql
@@ -43,5 +43,7 @@
4444 stats_quiz_questions_correct INTEGER DEFAULT 0,
4545 stats_quiz_points INTEGER DEFAULT 0,
4646 stats_quiz_questions_created INTEGER DEFAULT 0,
47 - stats_quiz_questions_correct_percent FLOAT DEFAULT 0
 47+ stats_quiz_questions_correct_percent FLOAT DEFAULT 0,
 48+ stats_links_submitted INTEGER NOT NULL DEFAULT 0,
 49+ stats_links_approved INTEGER NOT NULL DEFAULT 0
4850 );
Index: trunk/extensions/SocialProfile/UserStats/user_stats.sql
@@ -2,9 +2,9 @@
33 -- Table structure for table `user_stats`
44 --
55
6 -CREATE TABLE /*$wgDBprefix*/user_stats (
 6+CREATE TABLE /*_*/user_stats (
77 `stats_year_id` int(2) NOT NULL default '0',
8 - `stats_user_id` int(11) NOT NULL default '0',
 8+ `stats_user_id` int(11) NOT NULL default '0' PRIMARY KEY,
99 `stats_user_name` varchar(255) NOT NULL default '',
1010 `stats_user_image_count` int(11) NOT NULL default '0',
1111 `stats_comment_count` int(11) NOT NULL default '0',
@@ -46,5 +46,6 @@
4747 `stats_quiz_points` int(11) default '0',
4848 `stats_quiz_questions_created` int(11) default '0',
4949 `stats_quiz_questions_correct_percent` float default '0',
50 - PRIMARY KEY (`stats_user_id`)
 50+ `stats_links_submitted` int(11) NOT NULL default '0',
 51+ `stats_links_approved` int(11) NOT NULL default '0'
5152 ) DEFAULT CHARSET=utf8;

Status & tagging log