r96786 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96785‎ | r96786 | r96787 >
Date:15:32, 11 September 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
added indexes to answers table
Modified paths:
  • /trunk/extensions/Survey/Survey.hooks.php (modified) (history)
  • /trunk/extensions/Survey/sql/Survey_indexQuestionId.sql (added) (history)
  • /trunk/extensions/Survey/sql/Survey_indexSubmissionId.sql (added) (history)

Diff [purge]

Index: trunk/extensions/Survey/sql/Survey_indexQuestionId.sql
@@ -0,0 +1 @@
 2+CREATE INDEX /*i*/surveys_question_id ON /*_*/survey_answers (answer_question_id);
\ No newline at end of file
Property changes on: trunk/extensions/Survey/sql/Survey_indexQuestionId.sql
___________________________________________________________________
Added: svn:eol-style
13 + native
Index: trunk/extensions/Survey/sql/Survey_indexSubmissionId.sql
@@ -0,0 +1 @@
 2+CREATE INDEX /*i*/surveys_submission_id ON /*_*/survey_answers (answer_submission_id);
\ No newline at end of file
Property changes on: trunk/extensions/Survey/sql/Survey_indexSubmissionId.sql
___________________________________________________________________
Added: svn:eol-style
13 + native
Index: trunk/extensions/Survey/Survey.hooks.php
@@ -85,6 +85,20 @@
8686 dirname( __FILE__ ) . '/sql/Survey_indexSurveyName.sql',
8787 true
8888 ) );
 89+ $updater->addExtensionUpdate( array(
 90+ 'addIndex',
 91+ 'survey_answers',
 92+ 'answer_question_id',
 93+ dirname( __FILE__ ) . '/sql/Survey_indexQuestionId.sql',
 94+ true
 95+ ) );
 96+ $updater->addExtensionUpdate( array(
 97+ 'addIndex',
 98+ 'survey_answers',
 99+ 'answer_submission_id',
 100+ dirname( __FILE__ ) . '/sql/Survey_indexSubmissionId.sql',
 101+ true
 102+ ) );
89103
90104 return true;
91105 }

Status & tagging log