Internal: Check if data file for migration exists

pull/6010/head
Angel Fernando Quiroz Campos 9 months ago
parent 28d5d3a5b4
commit 482ff70c96
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 6
      src/CoreBundle/Migrations/AbstractMigrationChamilo.php

@ -410,7 +410,11 @@ abstract class AbstractMigrationChamilo extends AbstractMigration
{ {
$fullFilename = $this->generateFilePath($filename); $fullFilename = $this->generateFilePath($filename);
return file_get_contents($fullFilename); if ($this->fileExists($fullFilename)) {
return file_get_contents($fullFilename);
}
return '';
} }
protected function removeFile(string $filename): void protected function removeFile(string $filename): void

Loading…
Cancel
Save