MDL-63493 core_message: Fix field parameters for the index definitions
* The fields for the ID number-related indexes that were created for the messages and message_user_actions tables in MDL-36941 should not be in comma-separated strings.
This commit is contained in:
+2
-2
@@ -2167,7 +2167,7 @@ function xmldb_main_upgrade($oldversion) {
|
||||
$table = new xmldb_table('message_user_actions');
|
||||
|
||||
// Conditionally launch add index.
|
||||
$index = new xmldb_index('userid_messageid_action', XMLDB_INDEX_UNIQUE, array('userid, messageid, action'));
|
||||
$index = new xmldb_index('userid_messageid_action', XMLDB_INDEX_UNIQUE, array('userid', 'messageid', 'action'));
|
||||
if (!$dbman->index_exists($table, $index)) {
|
||||
$dbman->add_index($table, $index);
|
||||
}
|
||||
@@ -2181,7 +2181,7 @@ function xmldb_main_upgrade($oldversion) {
|
||||
$table = new xmldb_table('messages');
|
||||
|
||||
// Conditionally launch add index.
|
||||
$index = new xmldb_index('conversationid_timecreated', XMLDB_INDEX_NOTUNIQUE, array('conversationid, timecreated'));
|
||||
$index = new xmldb_index('conversationid_timecreated', XMLDB_INDEX_NOTUNIQUE, array('conversationid', 'timecreated'));
|
||||
if (!$dbman->index_exists($table, $index)) {
|
||||
$dbman->add_index($table, $index);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user