Clean migration of default definitions for entity properties

This commit is contained in:
2024-11-04 15:18:59 +01:00
committed by Julien Fastré
parent 31912b9b91
commit 9698a5e987
5 changed files with 32 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ class Option
#[ORM\GeneratedValue(strategy: 'AUTO')]
private ?int $id = null;
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::STRING, length: 50, name: 'internal_key')]
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::STRING, length: 50, name: 'internal_key', options: ['default' => ''])]
private string $internalKey = '';
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::STRING, length: 15)]