Merge branch 'MDL-34933_master' of https://github.com/mchurchward/moodle

Conflicts:
	lib/db/upgrade.php
	version.php
This commit is contained in:
Damyon Wiese 2013-04-23 09:20:05 +08:00
commit b0c4e47499
3 changed files with 19 additions and 1 deletions

View File

@ -2363,6 +2363,9 @@
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="primary key of the table, please edit me"/>
</KEYS>
<INDEXES>
<INDEX NAME="unreadmessageid_idx" UNIQUE="false" FIELDS="unreadmessageid" COMMENT="Index on unreadmessage id"/>
</INDEXES>
</TABLE>
<TABLE NAME="files" COMMENT="description of files, content is stored in sha1 file pool">
<FIELDS>

View File

@ -1990,6 +1990,7 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2013040300.01);
}
<<<<<<< HEAD
if ($oldversion < 2013041200.00) {
// MDL-29877 Some bad restores created grade items with no category information.
$sql = "UPDATE {grade_items}
@ -2125,5 +2126,19 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2013041900.00);
}
if ($oldversion < 2013042300.00) {
// Adding index to unreadmessageid field of message_working table (MDL-34933)
$table = new xmldb_table('message_working');
$index = new xmldb_index('unreadmessageid_idx', XMLDB_INDEX_NOTUNIQUE, array('unreadmessageid'));
// Conditionally launch add index unreadmessageid
if (!$dbman->index_exists($table, $index)) {
$dbman->add_index($table, $index);
}
// Main savepoint reached.
upgrade_main_savepoint(true, 2013042300.00);
}
return true;
}

View File

@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2013042200.00; // YYYYMMDD = weekly release date of this DEV branch
$version = 2013042300.00; // YYYYMMDD = weekly release date of this DEV branch
// RR = release increments - 00 in DEV branches
// .XX = incremental changes