From efcf52e71884aaa911f3dbb1ba794edfc47cdd2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Mon, 9 Feb 2026 11:44:30 +0100 Subject: [PATCH] fix: allow three chars for size property in teamer entity --- migrations/Version20260209104255.php | 31 ++++++++++++++++++++++++++++ src/Entity/Teamer.php | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 migrations/Version20260209104255.php diff --git a/migrations/Version20260209104255.php b/migrations/Version20260209104255.php new file mode 100644 index 0000000..9088127 --- /dev/null +++ b/migrations/Version20260209104255.php @@ -0,0 +1,31 @@ +addSql('ALTER TABLE teamer CHANGE size size VARCHAR(3) DEFAULT NULL'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('ALTER TABLE teamer CHANGE size size VARCHAR(2) DEFAULT NULL'); + } +} diff --git a/src/Entity/Teamer.php b/src/Entity/Teamer.php index f233d01..b2ea2de 100644 --- a/src/Entity/Teamer.php +++ b/src/Entity/Teamer.php @@ -128,7 +128,7 @@ class Teamer implements TimestampableEntityInterface #[Assert\NotBlank(message: 'Bitte gib deine Sprache(n) an', groups: ['profile', 'profile_preflight'])] private ?string $language = null; - #[ORM\Column(length: 2, nullable: true)] + #[ORM\Column(length: 3, nullable: true)] private ?string $size = null; #[ORM\Column(nullable: true)]