mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Drop the popup field properly
This commit is contained in:
parent
fdd5051029
commit
a068498c5d
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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)?
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user