Merge branch 'MDL-66599_37' of git://github.com/dmonllao/moodle into MOODLE_37_STABLE

This commit is contained in:
Jake Dallimore
2019-09-10 10:47:00 +08:00
3 changed files with 18 additions and 2 deletions
+2 -1
View File
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="lib/db" VERSION="20190501" COMMENT="XMLDB file for core Moodle tables"
<XMLDB PATH="lib/db" VERSION="20190905" COMMENT="XMLDB file for core Moodle tables"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../lib/xmldb/xmldb.xsd"
>
@@ -4018,6 +4018,7 @@
</KEYS>
<INDEXES>
<INDEX NAME="modelid-action" UNIQUE="false" FIELDS="modelid, action"/>
<INDEX NAME="analysableid" UNIQUE="false" FIELDS="analysableid"/>
</INDEXES>
</TABLE>
<TABLE NAME="search_index_requests" COMMENT="Records requests for (re)indexing of specific contexts. Entries will be removed from this table when indexing of that context is complete. (This table is not used for normal time-based indexing of new content.)">
+15
View File
@@ -3413,5 +3413,20 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2019052001.13);
}
if ($oldversion < 2019052002.01) {
// Define index analysableid (not unique) to be added to analytics_used_analysables.
$table = new xmldb_table('analytics_used_analysables');
$index = new xmldb_index('analysableid', XMLDB_INDEX_NOTUNIQUE, ['analysableid']);
// Conditionally launch add index analysableid.
if (!$dbman->index_exists($table, $index)) {
$dbman->add_index($table, $index);
}
// Main savepoint reached.
upgrade_main_savepoint(true, 2019052002.01);
}
return true;
}
+1 -1
View File
@@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2019052002.00; // 20190520 = branching date YYYYMMDD - do not modify!
$version = 2019052002.01; // 20190520 = branching date YYYYMMDD - do not modify!
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.