Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-31914 db fix - cannot use table aliases on DELETE statements. Cre…

…dit goes to Andrew Nicols (LUNS).
  • Loading branch information...
commit 352476d1317641744a7d4febff83f140feadca68 1 parent b5dd455
@stronk7 stronk7 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/db/upgrade.php
View
2  lib/db/upgrade.php
@@ -7042,7 +7042,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);
Please sign in to comment.
Something went wrong with that request. Please try again.