mirror of
https://github.com/moodle/moodle.git
synced 2025-03-19 23:20:09 +01:00
Merge branch 'master_MDL-64237' of https://github.com/danmarsden/moodle
This commit is contained in:
commit
fd0f5da874
@ -105,7 +105,6 @@
|
||||
<INDEXES>
|
||||
<INDEX NAME="userid-scormid-scoid-attempt-element" UNIQUE="true" FIELDS="userid, scormid, scoid, attempt, element"/>
|
||||
<INDEX NAME="userid" UNIQUE="false" FIELDS="userid"/>
|
||||
<INDEX NAME="element" UNIQUE="false" FIELDS="element"/>
|
||||
</INDEXES>
|
||||
</TABLE>
|
||||
<TABLE NAME="scorm_seq_objective" COMMENT="SCORM2004 objective description">
|
||||
|
@ -66,5 +66,18 @@ function xmldb_scorm_upgrade($oldversion) {
|
||||
// Automatically generated Moodle v3.6.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
if ($oldversion < 2018123100) {
|
||||
|
||||
// Remove un-used/large index on element field.
|
||||
$table = new xmldb_table('scorm_scoes_track');
|
||||
$index = new xmldb_index('element', XMLDB_INDEX_UNIQUE, ['element']);
|
||||
if ($dbman->index_exists($table, $index)) {
|
||||
$dbman->drop_index($table, $index);
|
||||
}
|
||||
|
||||
// Scorm savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2018123100, 'scorm');
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -24,6 +24,6 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2018120300; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2018123100; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2018112800; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_scorm'; // Full name of the plugin (used for diagnostics).
|
Loading…
x
Reference in New Issue
Block a user