Increased contacts.gateway_response column length to 65535

This commit is contained in:
Marko Jovanovic 2025-10-18 16:25:43 +02:00
parent da9613d6b2
commit 7317407c66
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20251018142349 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE contacts ALTER gateway_response TYPE VARCHAR(65535)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE contacts ALTER gateway_response TYPE VARCHAR(255)');
}
}

View File

@ -22,7 +22,7 @@ class Contacts
#[ORM\Column] #[ORM\Column]
private ?bool $contacted = null; private ?bool $contacted = null;
#[ORM\Column(length: 255, nullable: true)] #[ORM\Column(length: 65535, nullable: true)]
private ?string $gateway_response = null; private ?string $gateway_response = null;
#[ORM\Column(nullable: true)] #[ORM\Column(nullable: true)]