Skip to content
Browse files

Added a prefix to an alter table command

  • Loading branch information...
1 parent 46027ee commit 42e824e53c61b529ae2b014d888ad5c396f4d743 bobopinna committed Jul 14, 2004
Showing with 2 additions and 2 deletions.
  1. +1 −1 mod/scorm/db/mysql.php
  2. +1 −1 mod/scorm/db/postgres7.php
View
2 mod/scorm/db/mysql.php
@@ -16,7 +16,7 @@ function scorm_upgrade($oldversion) {
}
if ($oldversion < 2004070800) {
table_column("scorm_scoes", "", "datafromlms", "TEXT", "", "", "", "NOT NULL", "title");
- modify_database("", "ALTER TABLE `scorm_sco_users` DROP `cmi_launch_data`;");
+ modify_database("", "ALTER TABLE `{$CFG->prefix}scorm_sco_users` DROP `cmi_launch_data`;");
}
return true;
}
View
2 mod/scorm/db/postgres7.php
@@ -16,7 +16,7 @@ function scorm_upgrade($oldversion) {
}
if ($oldversion < 2004070800) {
table_column("scorm_scoes", "", "datafromlms", "TEXT", "", "", "", "NOT NULL", "title");
- modify_database("", "ALTER TABLE `scorm_sco_users` DROP `cmi_launch_data`;");
+ modify_database("", "ALTER TABLE `{$CFG->prefix}scorm_sco_users` DROP `cmi_launch_data`;");
}
return true;
}

0 comments on commit 42e824e

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