From fb7b9a25d81adec722f5214aa057046560cc565b Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 2 Apr 2015 17:46:32 -0500 Subject: [PATCH] Remove deletion of track_e_default registers on course deletion (avoids deleting course-creation register) (add comment) ~ refs #7202 --- main/inc/lib/course.lib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/inc/lib/course.lib.php b/main/inc/lib/course.lib.php index c289b5a212..9fb4516d73 100755 --- a/main/inc/lib/course.lib.php +++ b/main/inc/lib/course.lib.php @@ -2201,6 +2201,9 @@ class CourseManager Database::query($sql); $sql = "DELETE FROM $table_stats_online WHERE c_id = $courseId"; Database::query($sql); + // Do not delete rows from track_e_default as these include course + // creation and other important things that do not take much space + // but give information on the course history //$sql = "DELETE FROM $table_stats_default WHERE c_id = $courseId"; //Database::query($sql); $sql = "DELETE FROM $table_stats_downloads WHERE c_id = $courseId";