Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed an upgrade bug with field timelimitaction

  • Loading branch information...
commit 62d923574fb760f8e2c32586b594691e4a2a3940 1 parent 0ecb12b
bobopinna authored
Showing with 2 additions and 8 deletions.
  1. +2 −8 mod/scorm/db/mysql.php
View
10 mod/scorm/db/mysql.php
@@ -44,13 +44,11 @@ function scorm_upgrade($oldversion) {
if ($oldversion < 2005031300) {
table_column("scorm_scoes", "", "prerequisites", "VARCHAR", "200", "", "", "NOT NULL", "title");
table_column("scorm_scoes", "", "maxtimeallowed", "VARCHAR", "13", "", "", "NOT NULL", "prerequisites");
- modify_database('',"ALTER TABLE prefix_scorm_scoes ADD timelimitaction ".
- "SET('exit,message','exit,no message','continue,message','continue,no message') ".
- "DEFAULT '' AFTER 'maxtimeallowed'");
+ table_column("scorm_scoes", "", "timelimitaction", "VARCHAR", "19", "", "", "NOT NULL", "maxtimeallowed");
table_column("scorm_scoes", "", "masteryscore", "VARCHAR", "200", "", "", "NOT NULL", "datafromlms");
$oldscoes = get_records_select("scorm_scoes","1","id ASC");
- modify_database('',"ALTER TABLE prefix_scorm_scoes CHANGE type scormtype SET('sco','asset') DEFAULT '' NOT NULL");
+ table_column("scorm_scoes", "type", "scormtype", "VARCHAR", "5", "", "", "NOT NULL");
if(!empty($oldscoes)) {
foreach ($oldscoes as $sco) {
$sco->scormtype = $sco->type;
@@ -178,10 +176,6 @@ function scorm_upgrade($oldversion) {
if ($oldversion < 2005052200) {
table_column("scorm_scoes_track", "", "timemodified", "INT", "10", "UNSIGNED", "0", "NOT NULL", "value");
}
-
- if ($oldversion < 2005062700) {
- table_column("scorm", "", "popup", "TINYINT", "1", "UNSIGNED", "0", "NOT NULL", "auto");
- }
return true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.