From 7317407c66e549eacd2b9f87eab6a351afb457b2 Mon Sep 17 00:00:00 2001 From: Marko Jovanovic Date: Sat, 18 Oct 2025 16:25:43 +0200 Subject: [PATCH] Increased contacts.gateway_response column length to 65535 --- migrations/Version20251018142349.php | 32 ++++++++++++++++++++++++++++ src/Entity/Contacts.php | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 migrations/Version20251018142349.php diff --git a/migrations/Version20251018142349.php b/migrations/Version20251018142349.php new file mode 100644 index 0000000..e452101 --- /dev/null +++ b/migrations/Version20251018142349.php @@ -0,0 +1,32 @@ +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)'); + } +} diff --git a/src/Entity/Contacts.php b/src/Entity/Contacts.php index e7ef1db..f5ea9e3 100644 --- a/src/Entity/Contacts.php +++ b/src/Entity/Contacts.php @@ -22,7 +22,7 @@ class Contacts #[ORM\Column] private ?bool $contacted = null; - #[ORM\Column(length: 255, nullable: true)] + #[ORM\Column(length: 65535, nullable: true)] private ?string $gateway_response = null; #[ORM\Column(nullable: true)]