SELECT COUNT(1)
FROM mdl_course_modules cm
WHERE cm.availablefrom != 0 OR
cm.availableuntil != 0 OR
EXISTS (SELECT 1 FROM mdl_course_modules_availability WHERE coursemoduleid = cm.id) OR
EXISTS (SELECT 1 FROM mdl_course_modules_avail_fields WHERE coursemoduleid = cm.id)
[array (
)]
Error code: dmlreadexception
- line 443 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 1080 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1476 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
- line 1549 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
- line 1759 of /lib/dml/moodle_database.php: call to moodle_database->get_field_sql()
- line 3395 of /lib/db/upgrade.php: call to moodle_database->count_records_sql()
- line 1560 of /lib/upgradelib.php: call to xmldb_main_upgrade()
- line 361 of /admin/index.php: call to upgrade_core()