mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-65008 question: Query enhancement.
Adding core_question as an additional filter to the tag backup.
This commit is contained in:
parent
8360ef9293
commit
8d34e84bb9
1 changed files with 5 additions and 1 deletions
|
@ -2270,7 +2270,11 @@ class backup_questions_structure_step extends backup_structure_step {
|
||||||
FROM {tag} t
|
FROM {tag} t
|
||||||
JOIN {tag_instance} ti ON ti.tagid = t.id
|
JOIN {tag_instance} ti ON ti.tagid = t.id
|
||||||
WHERE ti.itemid = ?
|
WHERE ti.itemid = ?
|
||||||
AND ti.itemtype = 'question'", array(backup::VAR_PARENTID));
|
AND ti.itemtype = 'question'
|
||||||
|
AND ti.component = 'core_question'",
|
||||||
|
[
|
||||||
|
backup::VAR_PARENTID
|
||||||
|
]);
|
||||||
|
|
||||||
// don't need to annotate ids nor files
|
// don't need to annotate ids nor files
|
||||||
// (already done by {@link backup_annotate_all_question_files}
|
// (already done by {@link backup_annotate_all_question_files}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue