MDL-64715 core_message: Fix for message upgrade db prefix.

This commit is contained in:
Adrian Greeve 2019-04-18 11:47:13 +08:00
parent 9f23a65e0c
commit eae20bc94a

View File

@ -3134,7 +3134,7 @@ function xmldb_main_upgrade($oldversion) {
FROM {user} u
WHERE u.id NOT IN (SELECT mcm.userid
FROM {message_conversation_members} mcm
INNER JOIN mdl_message_conversations mc
INNER JOIN {message_conversations} mc
ON mc.id = mcm.conversationid AND mc.type = ?
)";
$useridsrs = $DB->get_recordset_sql($sql, [\core_message\api::MESSAGE_CONVERSATION_TYPE_SELF]);