Skip to content

Commit

Permalink
Add index to accelerate query - refs #8200
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolored committed May 30, 2016
1 parent 2524fc9 commit dceb516
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Migrations/Schema/V110/Version20151221150100.php
Expand Up @@ -16,6 +16,9 @@ class Version20151221150100 extends AbstractMigrationChamilo
*/
public function up(Schema $schema)
{
$this->addSql("
ALTER TABLE c_quiz_answer ADD INDEX idx_quiz_qid (question_id)");

$this->addSql("
UPDATE track_e_attempt a
INNER JOIN c_quiz_answer qa
Expand Down

0 comments on commit dceb516

Please sign in to comment.