diff --git a/mod/scorm/db/mysql.php b/mod/scorm/db/mysql.php index 1ffe2327dc5..7041f66a948 100755 --- a/mod/scorm/db/mysql.php +++ b/mod/scorm/db/mysql.php @@ -86,11 +86,11 @@ function scorm_upgrade($oldversion) { } } modify_database('',"DROP TABLE prefix_scorm_sco_users"); - modify_database('',"INSERT INTO prefix_log_display VALUES ('resource', 'review', 'resource', 'name')"); + modify_database('',"INSERT INTO prefix_log_display VALUES ('scorm', 'review', 'resource', 'name')"); } - if ($oldversion < 2005031400) { - table_column("scorm", "popup", ""); + if ($oldversion < 2005040200) { + execute_sql('ALTER TABLE `'.$CFG->prefix.'scorm` DROP `popup`'); // Old field } return true; diff --git a/mod/scorm/db/postgres7.php b/mod/scorm/db/postgres7.php index 5d872abec3f..ecb5123bfb0 100755 --- a/mod/scorm/db/postgres7.php +++ b/mod/scorm/db/postgres7.php @@ -89,8 +89,8 @@ function scorm_upgrade($oldversion) { modify_database('',"INSERT INTO prefix_log_display VALUES ('resource', 'review', 'resource', 'name')"); } - if ($oldversion < 2005031400) { - table_column("scorm", "popup", ""); + if ($oldversion < 2005040200) { + execute_sql('ALTER TABLE `'.$CFG->prefix.'scorm` DROP `popup`'); // Old field } return true; diff --git a/mod/scorm/version.php b/mod/scorm/version.php index e6d4ffd3a17..0696d1cd5a2 100755 --- a/mod/scorm/version.php +++ b/mod/scorm/version.php @@ -5,7 +5,7 @@ /// This fragment is called by moodle_needs_upgrading() and /admin/index.php ///////////////////////////////////////////////////////////////////////////////// -$module->version = 2005031300; // The (date) version of this module +$module->version = 2005040200; // The (date) version of this module $module->requires = 2005021600; // The version of Moodle that is required $module->cron = 0; // How often should cron check this module (seconds)?