Merge branch 'MDL-63493-35' of git://github.com/junpataleta/moodle into MOODLE_35_STABLE

This commit is contained in:
Andrew Nicols
2018-10-02 11:41:36 +08:00
+2 -2
View File
@@ -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);
}