fix: allow three chars for size property in teamer entity

This commit is contained in:
Björn Fromme
2026-03-15 12:42:28 +01:00
parent 9b35703155
commit efcf52e718
2 changed files with 32 additions and 1 deletions
+31
View File
@@ -0,0 +1,31 @@
<?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 Version20260209104255 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 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');
}
}
+1 -1
View File
@@ -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)]