Index: trunk/extensions/ArticleAssessmentPilot/ArticleAssessmentPilot.sql |
— | — | @@ -10,6 +10,7 @@ |
11 | 11 | CREATE TABLE IF NOT EXISTS /*$wgDBprefix*/article_assessment ( |
12 | 12 | -- Foreign key to page.page_id |
13 | 13 | aa_page_id integer unsigned NOT NULL, |
| 14 | + aa_user_id integer NOT NULL, |
14 | 15 | -- unique user identifier |
15 | 16 | aa_user_text varchar(255) binary NOT NULL, |
16 | 17 | -- Foreign key to revision.rev_id |
Index: trunk/extensions/ArticleAssessmentPilot/api/ApiArticleAssessment.php |
— | — | @@ -17,6 +17,7 @@ |
18 | 18 | 'article_assessment', |
19 | 19 | array( 'aa_rating_id', 'aa_rating_value' ), |
20 | 20 | array( 'aa_revision' => $params['revid'], |
| 21 | + 'aa_user_id' => $wgUser->getId(), |
21 | 22 | 'aa_user_text' => $userName, |
22 | 23 | /* 'aa_page_id' => $params['pageid'],*/ |
23 | 24 | ), |
— | — | @@ -84,7 +85,6 @@ |
85 | 86 | 'aap_rating' => $rating, |
86 | 87 | ), |
87 | 88 | __METHOD__, |
88 | | - array(), |
89 | 89 | array( |
90 | 90 | 'aap_total' => 'aap_total + ' . $updateAddition, |
91 | 91 | 'aap_count' => 'aap_count + ' . ( $newRating ? 1 : 0 ), |
— | — | @@ -111,7 +111,6 @@ |
112 | 112 | 'aa_rating_value' => $ratingValue, |
113 | 113 | ), |
114 | 114 | __METHOD__, |
115 | | - array(), |
116 | 115 | array( |
117 | 116 | 'aa_timestamp' => wfTimestampNow(), |
118 | 117 | 'aa_rating_id' => $ratingId, |