Merge branch 'master_MDL-64237' of https://github.com/danmarsden/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2019-01-22 17:18:52 +01:00
commit fd0f5da874
3 changed files with 14 additions and 2 deletions

View File

@ -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">

View File

@ -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;
}

View File

@ -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).