diff --git a/CHANGELOG.md b/CHANGELOG.md index b86c59f..ab94347 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [1.2.11] - 2026-03-25 +### Added +Modificada columna cacheContent de una partición para que sea de tipo TEXT y contener la lista de ficheros que tiene la cache. Se envía desde el ogagent al obtener la configuración mediante el campo [cac] + ## [1.2.10] - 2026-03-25 ### Added Modificado StatusController para que al recibir un webhook de Poweroff o reboot actualice el estado de las trazas en progreso y las ponga como finalizadas. diff --git a/src/Entity/Partition.php b/src/Entity/Partition.php index b0cc7ca..3308da9 100644 --- a/src/Entity/Partition.php +++ b/src/Entity/Partition.php @@ -3,6 +3,7 @@ namespace App\Entity; use App\Repository\PartitionRepository; +use Doctrine\DBAL\Types\Types; use Doctrine\ORM\Mapping as ORM; #[ORM\Entity(repositoryClass: PartitionRepository::class)] @@ -21,7 +22,7 @@ class Partition extends AbstractEntity #[ORM\Column] private ?int $size = null; - #[ORM\Column(length: 255, nullable: true)] + #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $cacheContent = null; #[ORM\Column(length: 255, nullable: true)] diff --git a/src/Service/CreatePartitionService.php b/src/Service/CreatePartitionService.php index f48acfd..b72fd91 100644 --- a/src/Service/CreatePartitionService.php +++ b/src/Service/CreatePartitionService.php @@ -86,6 +86,7 @@ class CreatePartitionService $partitionEntity->setFilesystem($cfg['fsi']); $partitionEntity->setMemoryUsage(((int) $cfg['uso']) * 100); + $partitionEntity->setCacheContent($cfg['cac'] ?? null); $this->entityManager->persist($partitionEntity); $receivedPartitions[] = ['disk' => $cfg['disk'], 'partition' => $cfg['par']];