Drop the popup field properly

This commit is contained in:
moodler 2005-04-02 09:56:49 +00:00
parent fdd5051029
commit a068498c5d
3 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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)?