Clean migration for activity bundle

This commit is contained in:
2024-09-19 14:37:05 +02:00
committed by Julien Fastré
parent e043b0cf12
commit f2eaf23c2a
3 changed files with 39 additions and 7 deletions

View File

@@ -31,11 +31,9 @@ class ActivityReasonCategory implements \Stringable
#[ORM\GeneratedValue(strategy: 'AUTO')]
private ?int $id = null;
/**
* @var string
*/
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::JSON)]
private $name;
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::JSON, options: ['default' => '{}', 'jsonb' => true])]
private array $name = [];
/**
* Array of ActivityReason.