diff --git a/src/Domain/Entity/EmailFooter.php b/src/Domain/Entity/EmailFooter.php index 53c99a1..9d5ca1c 100644 --- a/src/Domain/Entity/EmailFooter.php +++ b/src/Domain/Entity/EmailFooter.php @@ -37,8 +37,8 @@ class EmailFooter #[ORM\Column(name: 'description', type: 'string', nullable: true)] private ?string $description; - #[ORM\Column(name: 'placeholder', type: 'string', length: 600)] - private string $placeholder; + #[ORM\Column(name: 'placeholder', type: 'string', length: 600, nullable: true)] + private ?string $placeholder; public function getId(): int { @@ -96,7 +96,7 @@ public function getDescription(): ?string return $this->description; } - public function getPlaceholder(): string + public function getPlaceholder(): ?string { return $this->placeholder; } diff --git a/src/Infrastructure/Migrations/Version20230911112032.php b/src/Infrastructure/Migrations/Version20230911112032.php index cd5f28f..8fd319f 100644 --- a/src/Infrastructure/Migrations/Version20230911112032.php +++ b/src/Infrastructure/Migrations/Version20230911112032.php @@ -11,7 +11,7 @@ final class Version20230911112032 extends AbstractMigration { public function up(Schema $schema): void { - $this->addSql('ALTER TABLE module_email_footer ADD placeholder VARCHAR(600) NOT NULL'); + $this->addSql('ALTER TABLE module_email_footer ADD placeholder VARCHAR(600) DEFAULT NULL'); } public function down(Schema $schema): void