<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use App\Constants\MailEventConstants;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240301101000 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$body = "<table>
<tbody>
<tr>
<td style=\"padding: 20px; font-family:\'Noto Sans\', sans-serif; font-size: 24px; line-height: 26px; color: #1B2028;\">
<h1 style=\"margin: 0 0 10px 0; font-family:\'Noto Sans\', sans-serif; font-size: 24px; line-height: 26px; color: #1B2028; font-weight: bold;\">Новий пароль</h1>
</td>
</tr>
<tr>
<td style=\"padding: 20px; font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #1B2028;\">
<p style=\"margin: 0 0 10px 0;\">Ваш новий пароль для входу у особистий кабінет та перегляду історії покупок eSim. Не передавайте цей пароль нікому і зберігайте його в надійному місці!</p>
</td>
</tr>
<tr>
</tr>
</tbody>
</table>
<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" style=\"margin: auto;\">
<tbody>
<tr>
<td style=\"border-radius: 16px; padding: 24px 11px; background: #F7F7FA; border: 1px solid #E2E2E9\"><span style=\"text-wrap: balance; font-size: 32px; line-height: 38px; color: #1B2028; font-weight: bold; letter-spacing: 8px\">{user_password}</span></td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr>
<td>
<p style=\"margin-bottom: 0; font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #909299;\">Якщо цей пароль не буле використано протягом 30 хвилин - лист з паролем буде не дійсний!</p>
</td>
</tr>
<tr>
<td>
<div><img alt=\"\" height=\"36px\" src=\"{http_host}/build/images/warning.png\" style=\"width: 36px; height: 36px; margin-right: 10px; float: left\" width=\"36px\" />
<p style=\"margin-bottom: 0; font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #909299;\">Якщо ви не намагалися ввійти чи створити обліковий запис на eSIM АТБ, можете сміливо ігнорувати цей електронний лист.</p>
</div>
</td>
</tr>
</tbody>
</table>
";
$this->addSql("UPDATE mail_template SET body = '{$body}' WHERE event = ".MailEventConstants::PASSWORD_RESET);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}