Skip to content

Commit

Permalink
#66568: add nullable in placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodasilvarichid committed Sep 11, 2023
1 parent c2d7b83 commit 2085f62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Domain/Entity/EmailFooter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -96,7 +96,7 @@ public function getDescription(): ?string
return $this->description;
}

public function getPlaceholder(): string
public function getPlaceholder(): ?string
{
return $this->placeholder;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Infrastructure/Migrations/Version20230911112032.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2085f62

Please sign in to comment.