Course Progress: Migrations: only migrate active thematic not previously deleted ones - refs BT#20864

pull/5125/head
NicoDucou 2 years ago
parent 1dd2966f67
commit dc38fbb3ba
  1. 2
      src/CoreBundle/Migrations/Schema/V200/Version20201216105331.php

@ -58,7 +58,7 @@ final class Version20201216105331 extends AbstractMigrationChamilo
$courseId = $course->getId();
// c_thematic.
$sql = "SELECT * FROM c_thematic WHERE c_id = {$courseId}
$sql = "SELECT * FROM c_thematic WHERE c_id = {$courseId} and active = 1
ORDER BY iid";
$result = $connection->executeQuery($sql);
$items = $result->fetchAllAssociative();

Loading…
Cancel
Save