From 3ec8f360cfaa2b4b9fed400f577431b1a84cd20d Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Wed, 4 Aug 2010 09:44:25 +0000 Subject: [PATCH] MDL-23628 removed log_display upgrade leftovers --- lib/db/upgrade.php | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index a42618a3668..8bf4a3b6d66 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -224,18 +224,6 @@ function xmldb_main_upgrade($oldversion) { upgrade_main_savepoint(true, 2008051201); } - if ($oldversion < 2008051202) { - $log_action = new object(); - $log_action->module = 'course'; - $log_action->action = 'unenrol'; - $log_action->mtable = 'course'; - $log_action->field = 'fullname'; - if (!$DB->record_exists('log_display', array('action'=>'unenrol', 'module'=>'course'))) { - $DB->insert_record('log_display', $log_action); - } - upgrade_main_savepoint(true, 2008051202); - } - if ($oldversion < 2008051203) { $table = new xmldb_table('mnet_enrol_course'); $field = new xmldb_field('sortorder', XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, 0); @@ -2175,21 +2163,6 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); // The end of the navigation upgrade } - if ($oldversion < 2009090800){ - //insert new record for log_display table - //used to record tag update. - if (!$DB->record_exists('log_display', array('action'=>'update', 'module'=>'tag'))) { - $log_action = new object(); - $log_action->module = 'tag'; - $log_action->action = 'update'; - $log_action->mtable = 'tag'; - $log_action->field = 'name'; - - $DB->insert_record('log_display', $log_action); - } - upgrade_main_savepoint(true, 2009090800); - } - if ($oldversion < 2009100602) { /// Define table external_functions to be created $table = new xmldb_table('external_functions'); @@ -4674,7 +4647,6 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); } $DB->delete_records('event', array('modulename' => 'exercise')); $DB->delete_records('log', array('module' => 'exercise')); - $DB->delete_records('log_display', array('module' => 'exercise')); $DB->delete_records('modules', array('name'=>'exercise')); } } @@ -4699,7 +4671,6 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); } $DB->delete_records('event', array('modulename' => 'journal')); $DB->delete_records('log', array('module' => 'journal')); - $DB->delete_records('log_display', array('module' => 'journal')); $DB->delete_records('modules', array('name'=>'journal')); unset_config('journal_initialdisable'); } @@ -4725,7 +4696,6 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); } $DB->delete_records('event', array('modulename' => 'lams')); $DB->delete_records('log', array('module' => 'lams')); - $DB->delete_records('log_display', array('module' => 'lams')); $DB->delete_records('modules', array('name'=>'lams')); unset_config('lams_initialdisable'); }