Add index to accelerate query - refs #8200

1.10.x
nosolored 10 years ago
parent 2524fc9f54
commit dceb5164e1
  1. 3
      app/Migrations/Schema/V110/Version20151221150100.php

@ -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

Loading…
Cancel
Save