MDL-23628 removed more log_display upgrade leftovers

This commit is contained in:
Petr Skoda 2010-08-04 09:48:04 +00:00
parent d3da2ae51b
commit 611b0a0c9b
2 changed files with 0 additions and 35 deletions

View File

@ -173,35 +173,6 @@ function xmldb_feedback_upgrade($oldversion) {
upgrade_mod_savepoint(true, 2008042401, 'feedback');
}
if ($oldversion < 2008042801) {
$new_log_display = new object();
$new_log_display->module = 'feedback';
$new_log_display->action = 'startcomplete';
$new_log_display->mtable = 'feedback';
$new_log_display->field = 'name';
$DB->insert_record('log_display', $new_log_display);
$new_log_display = clone($new_log_display);
$new_log_display->action = 'submit';
$DB->insert_record('log_display', $new_log_display);
$new_log_display = clone($new_log_display);
$new_log_display->action = 'delete';
$DB->insert_record('log_display', $new_log_display);
$new_log_display = clone($new_log_display);
$new_log_display->action = 'view';
$DB->insert_record('log_display', $new_log_display);
$new_log_display = clone($new_log_display);
$new_log_display->action = 'view all';
$new_log_display->mtable = 'course';
$new_log_display->field = 'shortname';
$DB->insert_record('log_display', $new_log_display);
upgrade_mod_savepoint(true, 2008042801, 'feedback');
}
if ($oldversion < 2008042900) {
/// Define field autonumbering to be added to feedback
$table = new xmldb_table('feedback');

View File

@ -53,12 +53,6 @@ function xmldb_label_upgrade($oldversion) {
//===== 1.9.0 upgrade line ======//
if ($oldversion < 2007101510) {
$sql = "UPDATE {log_display} SET mtable = 'label' WHERE module = 'label'";
$DB->execute($sql);
upgrade_mod_savepoint(true, 2007101510, 'label');
}
if ($oldversion < 2009042200) {
/// Rename field content on table label to intro