mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-23628 removed more log_display upgrade leftovers
This commit is contained in:
parent
d3da2ae51b
commit
611b0a0c9b
@ -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');
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user