Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
82e1b64
3e28364
)
Merge branch 'master_MDL-50620' of https://github.com/danmarsden/moodle
author
Dan Poltawski
<dan@moodle.com>
Tue, 16 Feb 2016 09:09:08 +0000
(09:09 +0000)
committer
Dan Poltawski
<dan@moodle.com>
Tue, 16 Feb 2016 09:09:08 +0000
(09:09 +0000)
1
2
mod/scorm/db/upgrade.php
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
mod/scorm/db/upgrade.php
index
c926430
,
471b326
..
73c8818
---
1
/
mod/scorm/db/upgrade.php
---
2
/
mod/scorm/db/upgrade.php
+++ b/
mod/scorm/db/upgrade.php
@@@
-93,5
-338,19
+93,17
@@@
function xmldb_scorm_upgrade($oldversio
// Moodle v3.0.0 release upgrade line.
// Put any upgrade step following this.
+ // MDL-50620 Add mastery override option.
+ if ($oldversion < 2016021000) {
+ $table = new xmldb_table('scorm');
+
+ $field = new xmldb_field('masteryoverride', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL, null, '1', 'lastattemptlock');
+ if (!$dbman->field_exists($table, $field)) {
+ $dbman->add_field($table, $field);
+ }
+
+ upgrade_mod_savepoint(true, 2016021000, 'scorm');
+ }
+
return true;
}
-
-