From: moodler Date: Thu, 5 Feb 2004 08:36:48 +0000 (+0000) Subject: Removing old log upgrades (too slow) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=34050fd84a22325426ab2a2bdd1a838072cf6509;p=moodle.git Removing old log upgrades (too slow) --- diff --git a/mod/journal/db/mysql.php b/mod/journal/db/mysql.php index 26bd2df37d..836c9b8eeb 100644 --- a/mod/journal/db/mysql.php +++ b/mod/journal/db/mysql.php @@ -47,19 +47,6 @@ function journal_upgrade($oldversion) { table_column("journal", "", "introformat", "integer", "2", "", "1", "not null", "intro"); } - if ($oldversion < 2004020500) { - if ($journals = get_records("journal")) { - foreach ($journals as $journal) { - if ($cm = get_coursemodule_from_instance("journal", $journal->id, $journal->course)) { - execute_sql("UPDATE {$CFG->prefix}log SET cmid = '$cm->id' - WHERE module = 'journal' AND url = 'report.php?id=$cm->id'"); - - execute_sql("UPDATE {$CFG->prefix}log SET cmid = '$cm->id' - WHERE module = 'journal' AND url = 'view.php?id=$cm->id'"); - } - } - } - } return $result; } diff --git a/mod/journal/db/postgres7.php b/mod/journal/db/postgres7.php index ff789cd4d1..acdaaa39e3 100644 --- a/mod/journal/db/postgres7.php +++ b/mod/journal/db/postgres7.php @@ -30,19 +30,6 @@ function journal_upgrade($oldversion) { table_column("journal", "", "introformat", "integer", "2", "", "1", "not null", "intro"); } - if ($oldversion < 2004020500) { - if ($journals = get_records("journal")) { - foreach ($journals as $journal) { - if ($cm = get_coursemodule_from_instance("journal", $journal->id, $journal->course)) { - execute_sql("UPDATE {$CFG->prefix}log SET cmid = '$cm->id' - WHERE module = 'journal' AND url = 'report.php?id=$cm->id'"); - - execute_sql("UPDATE {$CFG->prefix}log SET cmid = '$cm->id' - WHERE module = 'journal' AND url = 'view.php?id=$cm->id'"); - } - } - } - } return $result; }