Skip to content

Commit

Permalink
Merge pull request #2 from rich-id/feature/t66568
Browse files Browse the repository at this point in the history
#66568: add placeholder
  • Loading branch information
hdumazeau authored Sep 11, 2023
2 parents f6c9925 + 2085f62 commit 0e913c7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Domain/Entity/EmailFooter.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ class EmailFooter
#[ORM\Column(name: 'description', type: 'string', nullable: true)]
private ?string $description;

#[ORM\Column(name: 'placeholder', type: 'string', length: 600, nullable: true)]
private ?string $placeholder;

public function getId(): int
{
return $this->id;
Expand Down Expand Up @@ -92,4 +95,9 @@ public function getDescription(): ?string
{
return $this->description;
}

public function getPlaceholder(): ?string
{
return $this->placeholder;
}
}
21 changes: 21 additions & 0 deletions src/Infrastructure/Migrations/Version20230911112032.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

declare(strict_types=1);

namespace RichId\MailerBundle\Infrastructure\Migrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

final class Version20230911112032 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE module_email_footer ADD placeholder VARCHAR(600) DEFAULT NULL');
}

public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE module_email_footer DROP placeholder');
}
}

0 comments on commit 0e913c7

Please sign in to comment.