Merge branch 'MDL-84844-main' of https://github.com/PhMemmel/moodle
This commit is contained in:
+2
-1
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<XMLDB PATH="lib/db" VERSION="20241205" COMMENT="XMLDB file for core Moodle tables"
|
||||
<XMLDB PATH="lib/db" VERSION="20250312" COMMENT="XMLDB file for core Moodle tables"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="../../lib/xmldb/xmldb.xsd"
|
||||
>
|
||||
@@ -395,6 +395,7 @@
|
||||
</KEYS>
|
||||
<INDEXES>
|
||||
<INDEX NAME="course_section" UNIQUE="true" FIELDS="course, section"/>
|
||||
<INDEX NAME="component_itemid" UNIQUE="false" FIELDS="component, itemid" COMMENT="necessary for querying delegated sections"/>
|
||||
</INDEXES>
|
||||
</TABLE>
|
||||
<TABLE NAME="course_request" COMMENT="course requests">
|
||||
|
||||
@@ -1587,5 +1587,18 @@ function xmldb_main_upgrade($oldversion) {
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2025031100.01);
|
||||
}
|
||||
|
||||
if ($oldversion < 2025031800.00) {
|
||||
// Add index for querying delegated sections.
|
||||
$table = new xmldb_table('course_sections');
|
||||
$index = new xmldb_index('component_itemid', XMLDB_INDEX_NOTUNIQUE, ['component', 'itemid']);
|
||||
|
||||
if (!$dbman->index_exists($table, $index)) {
|
||||
$dbman->add_index($table, $index);
|
||||
}
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2025031800.00);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$version = 2025031500.00; // YYYYMMDD = weekly release date of this DEV branch.
|
||||
$version = 2025031800.00; // YYYYMMDD = weekly release date of this DEV branch.
|
||||
// RR = release increments - 00 in DEV branches.
|
||||
// .XX = incremental changes.
|
||||
$release = '5.0dev+ (Build: 20250315)'; // Human-friendly version name
|
||||
|
||||
Reference in New Issue
Block a user