Remove deletion of track_e_default registers on course deletion (avoids deleting course-creation register) (add comment) ~ refs #7202

1.10.x
Yannick Warnier 11 years ago
parent 4610e41739
commit fb7b9a25d8
  1. 3
      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";

Loading…
Cancel
Save