Skip to content
Browse files

Fixed some bugs in upgrade procedure, updated postgres upgrade

  • Loading branch information...
1 parent aee2028 commit 96ca8c6cc64c5266adee44d4b6e8fc508e682a82 bobopinna committed Jun 29, 2005
Showing with 9 additions and 0 deletions.
  1. +4 −0 mod/scorm/db/mysql.php
  2. +4 −0 mod/scorm/db/postgres7.php
  3. +1 −0 mod/scorm/db/postgres7.sql
View
4 mod/scorm/db/mysql.php
@@ -176,6 +176,10 @@ function scorm_upgrade($oldversion) {
if ($oldversion < 2005052200) {
table_column("scorm_scoes_track", "", "timemodified", "INT", "10", "UNSIGNED", "0", "NOT NULL", "value");
}
+
+ if ($oldversion < 2005052700) {
+ table_column("scorm", "", "popup", "TINYINT", "1", "UNSIGNED", "0", "NOT NULL", "auto");
+ }
return true;
}
View
4 mod/scorm/db/postgres7.php
@@ -173,6 +173,10 @@ function scorm_upgrade($oldversion) {
if ($oldversion < 2005052200) {
table_column("scorm_scoes_track", "", "timemodified", "integer", "", "", "0", "NOT NULL", "value");
}
+
+ if ($oldversion < 2005062700) {
+ table_column("scorm", "", "popup", "integer", "", "", "0", "NOT NULL", "auto");
+ }
return true;
}
View
1 mod/scorm/db/postgres7.sql
@@ -13,6 +13,7 @@ CREATE TABLE prefix_scorm (
summary text NOT NULL default '',
browsemode integer NOT NULL default '0',
auto integer NOT NULL default '0',
+ popup integer NOT NULL default '0',
width integer NOT NULL default '800',
height integer NOT NULL default '600',
timemodified integer NOT NULL default '0'

0 comments on commit 96ca8c6

Please sign in to comment.
Something went wrong with that request. Please try again.