Skip to content

Commit

Permalink
Merge pull request #4456 from ILIAS-eLearning/hotfix/8/28558
Browse files Browse the repository at this point in the history
TestQuestionPool: Add SQL indexes for cloze question
  • Loading branch information
mbecker-databay authored May 5, 2022
2 parents ad3badd + 3cd9832 commit a705970
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,28 @@ public function step_2() : void
);
}
}

public function step_3() : void
{
$fields = ['gap_id'];
if (!$this->db->indexExistsByFields('qpl_a_cloze', $fields)) {
$this->db->addIndex(
'qpl_a_cloze',
$fields,
'i2'
);
}
}

public function step_4() : void
{
$fields = ['gap_fi', 'question_fi'];
if (!$this->db->indexExistsByFields('qpl_a_cloze_combi_res', $fields)) {
$this->db->addIndex(
'qpl_a_cloze_combi_res',
$fields,
'i1'
);
}
}
}

0 comments on commit a705970

Please sign in to comment.