1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-11 11:23:52 +02:00

Merge branch 'MDL-75688-master' of https://github.com/call-learning/moodle

This commit is contained in:
Andrew Nicols 2023-02-06 21:18:06 +08:00
commit c4fceb6237
3 changed files with 17 additions and 2 deletions

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="mod/bigbluebuttonbn/db" VERSION="20210909" COMMENT="XMLDB file for Moodle mod/bigbluebuttonbn"
<XMLDB PATH="mod/bigbluebuttonbn/db" VERSION="20230118" COMMENT="XMLDB file for Moodle mod/bigbluebuttonbn"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
>
@ -75,6 +75,7 @@
<INDEX NAME="log" UNIQUE="false" FIELDS="log"/>
<INDEX NAME="logrow" UNIQUE="false" FIELDS="courseid, bigbluebuttonbnid, userid, log"/>
<INDEX NAME="userlog" UNIQUE="false" FIELDS="userid, log"/>
<INDEX NAME="course_bbbid_ix" UNIQUE="false" FIELDS="courseid, bigbluebuttonbnid"/>
</INDEXES>
</TABLE>
<TABLE NAME="bigbluebuttonbn_recordings" COMMENT="The bigbluebuttonbn table to store references to recordings">

@ -485,6 +485,20 @@ function xmldb_bigbluebuttonbn_upgrade($oldversion = 0) {
}
// Automatically generated Moodle v4.1.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2023011800) {
// Define index course_bbbid_ix (not unique) to be added to bigbluebuttonbn_logs.
$table = new xmldb_table('bigbluebuttonbn_logs');
$index = new xmldb_index('course_bbbid_ix', XMLDB_INDEX_NOTUNIQUE, ['courseid', 'bigbluebuttonbnid']);
// Conditionally launch add index course_bbbid_ix.
if (!$dbman->index_exists($table, $index)) {
$dbman->add_index($table, $index);
}
// Bigbluebuttonbn savepoint reached.
upgrade_mod_savepoint(true, 2023011800, 'bigbluebuttonbn');
}
return true;
}

@ -27,6 +27,6 @@
defined('MOODLE_INTERNAL') || die;
$plugin->version = 2022112800;
$plugin->version = 2023011800;
$plugin->requires = 2022111800;
$plugin->component = 'mod_bigbluebuttonbn';