r71611 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71610‎ | r71611 | r71612 >
Date:01:20, 25 August 2010
Author:reedy
Status:deferred
Tags:
Comment:
Unique prefix for table

Add an index.. Probably will be removed later when more refined.. Or something.
Modified paths:
  • /trunk/extensions/ArticleAssessmentPilot/ArticleAssessmentPilot.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleAssessmentPilot/ArticleAssessmentPilot.sql
@@ -21,11 +21,13 @@
2222 -- Store article assessments
2323 CREATE TABLE IF NOT EXISTS /*$wgDBprefix*/article_assessment_pages (
2424 -- Foreign key to page.page_id
25 - aa_page_id integer unsigned NOT NULL,
 25+ aap_page_id integer unsigned NOT NULL,
2626 -- Foreign key to revision.rev_id
27 - aa_revision integer unsigned NOT NULL,
28 - aa_total integer unsigned NOT NULL,
29 - aa_count integer unsigned NOT NULL,
30 - aa_dimension integer unsigned NOT NULL,
31 - PRIMARY KEY (aa_page_id, aa_revision, aa_dimension)
32 -) /*$wgDBTableOptions*/;
\ No newline at end of file
 27+ aap_revision integer unsigned NOT NULL,
 28+ aap_total integer unsigned NOT NULL,
 29+ aap_count integer unsigned NOT NULL,
 30+ aap_dimension integer unsigned NOT NULL,
 31+ PRIMARY KEY (aap_page_id, aap_revision, aap_dimension)
 32+) /*$wgDBTableOptions*/;
 33+
 34+CREATE INDEX /*i*/revision ON /*_*/article_assessment_pages (aap_revision, aap_page_id, aap_dimension);
\ No newline at end of file

Status & tagging log