Skip to content

Commit

Permalink
MDL-31914 db fix - cannot use table aliases on DELETE statements. Cre…
Browse files Browse the repository at this point in the history
…dit goes to Andrew Nicols (LUNS).
  • Loading branch information
stronk7 committed Apr 24, 2012
1 parent 04cc6a1 commit b38f551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db/upgrade.php
Expand Up @@ -6774,7 +6774,7 @@ function xmldb_main_upgrade($oldversion) {
WHERE NOT EXISTS (
SELECT 'x' FROM {course_modules}
WHERE {course_modules}.id = {course_completion_criteria}.moduleinstance)
AND cc.criteriatype = ".COMPLETION_CRITERIA_TYPE_ACTIVITY;
AND {course_completion_criteria}.criteriatype = ".COMPLETION_CRITERIA_TYPE_ACTIVITY;
}
$DB->execute($sql);

Expand Down

0 comments on commit b38f551

Please sign in to comment.