Fix: change Trace output column to LONGTEXT to avoid 500 errors on large output
ogcore-debian-package/pipeline/head This commit looks good Details
testing/ogcore-api/pipeline/head There was a failure building this commit Details

pull/125/head
Juan Manuel Bardallo 2026-07-22 10:59:48 +02:00
parent f87ebe5c9a
commit 4c2e43940a
2 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260722100000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Change trace output column type to TEXT to support long output';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE trace CHANGE output output LONGTEXT DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE trace CHANGE output output VARCHAR(255) DEFAULT NULL');
}
}

View File

@ -19,7 +19,7 @@ class Trace extends AbstractEntity
#[ORM\Column(length: 255)]
private ?string $status = null;
#[ORM\Column(length: 255, nullable: true)]
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $output = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]