course column 'originalcourseid' is missing an index or a foreign key to table 'course->id' enrol column 'roleid' is missing an index or a foreign key to table 'role->id' scale column 'userid' is missing an index or a foreign key to table 'user->id' scale_history column 'userid' is missing an index or a foreign key to table 'user->id' post column 'courseid' is missing an index or a foreign key to table 'course->id' column 'coursemoduleid' is missing an index or a foreign key to table 'course_modules->id' question_statistics column 'questionid' is missing an index or a foreign key to table 'question->id' question_response_analysis column 'questionid' is missing an index or a foreign key to table 'question->id' mnet_host column 'last_log_id' is missing an index or a foreign key to table 'log->id' mnet_session column 'userid' is missing an index or a foreign key to table 'user->id' column 'mnethostid' is missing an index or a foreign key to table 'mnet_host->id' grade_import_values column 'userid' is missing an index or a foreign key to table 'user->id' portfolio_log column 'tempdataid' is missing an index or a foreign key to table 'data->id' file_conversion column 'usermodified' is missing an index or a foreign key to table 'user->id' repository_instances column 'userid' is missing an index or a foreign key to table 'user->id' column 'contextid' is missing an index or a foreign key to table 'context->id' rating column 'scaleid' is missing an index or a foreign key to table 'scale->id' course_published column 'courseid' is missing an index or a foreign key to table 'course->id' column 'hubcourseid' is missing an index or a foreign key to table 'course->id' event_subscriptions column 'courseid' is missing an index or a foreign key to table 'course->id' column 'userid' is missing an index or a foreign key to table 'user->id' task_log column 'userid' is missing an index or a foreign key to table 'user->id' competency column 'scaleid' is missing an index or a foreign key to table 'scale->id' column 'usermodified' is missing an index or a foreign key to table 'user->id' competency_coursecompsetting column 'usermodified' is missing an index or a foreign key to table 'user->id' competency_framework column 'contextid' is missing an index or a foreign key to table 'context->id' column 'scaleid' is missing an index or a foreign key to table 'scale->id' column 'usermodified' is missing an index or a foreign key to table 'user->id' competency_coursecomp column 'usermodified' is missing an index or a foreign key to table 'user->id' competency_plan column 'usermodified' is missing an index or a foreign key to table 'user->id' competency_template column 'contextid' is missing an index or a foreign key to table 'context->id' column 'usermodified' is missing an index or a foreign key to table 'user->id' competency_templatecomp column 'usermodified' is missing an index or a foreign key to table 'user->id' competency_templatecohort column 'usermodified' is missing an index or a foreign key to table 'user->id' competency_relatedcomp column 'competencyid' is missing an index or a foreign key to table 'competency->id' column 'relatedcompetencyid' is missing an index or a foreign key to table 'competency->id' column 'usermodified' is missing an index or a foreign key to table 'user->id' competency_usercomp column 'usermodified' is missing an index or a foreign key to table 'user->id' competency_usercompcourse column 'usermodified' is missing an index or a foreign key to table 'user->id' competency_usercompplan column 'usermodified' is missing an index or a foreign key to table 'user->id' competency_plancomp column 'usermodified' is missing an index or a foreign key to table 'user->id' competency_evidence column 'contextid' is missing an index or a foreign key to table 'context->id' column 'actionuserid' is missing an index or a foreign key to table 'user->id' column 'usermodified' is missing an index or a foreign key to table 'user->id' competency_userevidence column 'usermodified' is missing an index or a foreign key to table 'user->id' competency_userevidencecomp column 'usermodified' is missing an index or a foreign key to table 'user->id' competency_modulecomp column 'usermodified' is missing an index or a foreign key to table 'user->id' oauth2_endpoint column 'usermodified' is missing an index or a foreign key to table 'user->id' oauth2_issuer column 'usermodified' is missing an index or a foreign key to table 'user->id' oauth2_system_account column 'usermodified' is missing an index or a foreign key to table 'user->id' oauth2_user_field_mapping column 'usermodified' is missing an index or a foreign key to table 'user->id' analytics_models column 'usermodified' is missing an index or a foreign key to table 'user->id' analytics_models_log column 'usermodified' is missing an index or a foreign key to table 'user->id' oauth2_access_token column 'usermodified' is missing an index or a foreign key to table 'user->id' payment_accounts column 'contextid' is missing an index or a foreign key to table 'context->id' oauth2_refresh_token table is missing adminpresets column 'userid' is missing an index or a foreign key to table 'user->id' adminpresets_app column 'userid' is missing an index or a foreign key to table 'user->id' attendance_rotate_passwords column 'attendanceid' is missing an index or a foreign key to table 'attendance->id' bigbluebuttonbn column 'course' is missing an index or a foreign key to table 'course->id' book column 'course' is missing an index or a foreign key to table 'course->id' chat_users column 'course' is missing an index or a foreign key to table 'course->id' checklist_item column 'eventid' is missing an index or a foreign key to table 'event->id' customcert column 'course' is missing an index or a foreign key to table 'course->id' customcert_issues column 'userid' is missing an index or a foreign key to table 'user->id' data_records column 'userid' is missing an index or a foreign key to table 'user->id' feedback_completed column 'courseid' is missing an index or a foreign key to table 'course->id' feedback_completedtmp column 'courseid' is missing an index or a foreign key to table 'course->id' forum_discussions column 'usermodified' is missing an index or a foreign key to table 'user->id' glossary_entries column 'sourceglossaryid' is missing an index or a foreign key to table 'glossary->id' lesson column 'feedback' is missing an index or a foreign key to table 'feedback->id' lesson_pages column 'prevpageid' is missing an index or a foreign key to table 'page->id' column 'nextpageid' is missing an index or a foreign key to table 'page->id' lesson_branch column 'nextpageid' is missing an index or a foreign key to table 'page->id' lti_submission column 'userid' is missing an index or a foreign key to table 'user->id' quiz_slots column 'page' is missing an index or a foreign key to table 'page->id' resource_old column 'course' is missing an index or a foreign key to table 'course->id' wiki_versions column 'userid' is missing an index or a foreign key to table 'user->id' wiki_synonyms column 'subwikiid' is missing an index or a foreign key to table 'wiki->id' wiki_links column 'topageid' is missing an index or a foreign key to table 'page->id' wiki_locks column 'pageid' is missing an index or a foreign key to table 'page->id' column 'userid' is missing an index or a foreign key to table 'user->id' auth_enrolkey_redirect column 'enrolid' is missing an index or a foreign key to table 'enrol->id' auth_enrolkey_profile column 'enrolid' is missing an index or a foreign key to table 'enrol->id' auth_enrolkey_cohort column 'enrolid' is missing an index or a foreign key to table 'enrol->id' column 'cohortid' is missing an index or a foreign key to table 'cohort->id' enrol_lti_resource_link column 'resourceid' is missing an index or a foreign key to table 'resource->id' block_carousel column 'blockid' is missing an index or a foreign key to table 'block->id' column 'timed' is not expected (I) block_configurable_reports column 'courseid' is missing an index or a foreign key to table 'course->id' block_recent_activity column 'userid' is missing an index or a foreign key to table 'user->id' block_rss_client column 'userid' is missing an index or a foreign key to table 'user->id' mnetservice_enrol_courses column 'roleid' is missing an index or a foreign key to table 'role->id' mnetservice_enrol_enrolments column 'remotecourseid' is missing an index or a foreign key to table 'course->id' search_simpledb_index column 'courseid' is missing an index or a foreign key to table 'course->id' column 'userid' is missing an index or a foreign key to table 'user->id' tool_brickfield_process column 'courseid' is missing an index or a foreign key to table 'course->id' column 'contextid' is missing an index or a foreign key to table 'context->id' column 'innercontextid' is missing an index or a foreign key to table 'context->id' tool_brickfield_schedule column 'contextid' is missing an index or a foreign key to table 'context->id' tool_cohortroles column 'usermodified' is missing an index or a foreign key to table 'user->id' tool_crawler_url column 'contextid' is missing an index or a foreign key to table 'context->id' column 'ignoreduserid' is missing an index or a foreign key to table 'user->id' column 'usermodified' is missing an index or a foreign key to table 'user->id' tool_dataflows column 'userid' is missing an index or a foreign key to table 'user->id' column 'usermodified' is missing an index or a foreign key to table 'user->id' tool_dataflows_steps column 'userid' is missing an index or a foreign key to table 'user->id' column 'usermodified' is missing an index or a foreign key to table 'user->id' tool_dataprivacy_purpose column 'usermodified' is missing an index or a foreign key to table 'user->id' tool_dataprivacy_category column 'usermodified' is missing an index or a foreign key to table 'user->id' tool_dataprivacy_ctxinstance column 'usermodified' is missing an index or a foreign key to table 'user->id' tool_dataprivacy_ctxlevel column 'usermodified' is missing an index or a foreign key to table 'user->id' tool_dataprivacy_ctxexpired column 'usermodified' is missing an index or a foreign key to table 'user->id' tool_dataprivacy_purposerole column 'usermodified' is missing an index or a foreign key to table 'user->id' tool_excimer_profiles column 'usermodified' is missing an index or a foreign key to table 'user->id' tool_monitor_events column 'contextid' is missing an index or a foreign key to table 'context->id' column 'contextinstanceid' is missing an index or a foreign key to table 'context->id' column 'courseid' is missing an index or a foreign key to table 'course->id' tool_trigger_events column 'contextinstanceid' is missing an index or a foreign key to table 'context->id' column 'userid' is missing an index or a foreign key to table 'user->id' column 'courseid' is missing an index or a foreign key to table 'course->id' column 'relateduserid' is missing an index or a foreign key to table 'user->id' column 'realuserid' is missing an index or a foreign key to table 'user->id' tool_trigger_learn_events column 'contextinstanceid' is missing an index or a foreign key to table 'context->id' column 'userid' is missing an index or a foreign key to table 'user->id' column 'courseid' is missing an index or a foreign key to table 'course->id' column 'relateduserid' is missing an index or a foreign key to table 'user->id' column 'realuserid' is missing an index or a foreign key to table 'user->id' tool_trigger_workflow_hist column 'userid' is missing an index or a foreign key to table 'user->id' logstore_standard_log column 'relateduserid' is missing an index or a foreign key to table 'user->id' column 'realuserid' is missing an index or a foreign key to table 'user->id' logstore_xapi_log column 'contextid' is missing an index or a foreign key to table 'context->id' column 'relateduserid' is missing an index or a foreign key to table 'user->id' column 'realuserid' is missing an index or a foreign key to table 'user->id' logstore_xapi_failed_log column 'contextid' is missing an index or a foreign key to table 'context->id' column 'relateduserid' is missing an index or a foreign key to table 'user->id' column 'realuserid' is missing an index or a foreign key to table 'user->id' cleaner_scheduled_tasks column 'taskscheduledid' is missing an index or a foreign key to table 'task_scheduled->id'