<INDEXES>
<INDEX NAME="useridto" UNIQUE="false" FIELDS="useridto"/>
<INDEX NAME="useridfromtodeleted" UNIQUE="false" FIELDS="useridfrom, useridto, timeuserfromdeleted, timeusertodeleted"/>
+ <INDEX NAME="notificationtimeread" UNIQUE="false" FIELDS="notification, timeread"/>
</INDEXES>
</TABLE>
<TABLE NAME="message_contacts" COMMENT="Maintains lists of relationships between users">
upgrade_main_savepoint(true, 2015092200.00);
}
+ if ($oldversion < 2015100100.00) {
+
+ // Define index notification (not unique) to be added to message_read.
+ $table = new xmldb_table('message_read');
+ $index = new xmldb_index('notificationtimeread', XMLDB_INDEX_NOTUNIQUE, array('notification', 'timeread'));
+
+ // Conditionally launch add index notification.
+ if (!$dbman->index_exists($table, $index)) {
+ $dbman->add_index($table, $index);
+ }
+
+ // Main savepoint reached.
+ upgrade_main_savepoint(true, 2015100100.00);
+ }
+
return true;
}
defined('MOODLE_INTERNAL') || die();
-$version = 2015092400.00; // YYYYMMDD = weekly release date of this DEV branch.
+$version = 2015100100.00; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.