<?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 Version20240301101106 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: sans-serif; font-size: 15px; line-height: 20px; color: #555555;\"><img alt=\"\" height=\"100%\" src=\"{http_host}/build/images/Code.png\" width=\"100%\" /></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;\">Ми отримали запит щодо відновлення вашого паролю.</p>
</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;\">Ви можете отримати новий пароль, якщо перейдете за посиланням нижче або скопіюєте та вставите цей лінк в пошукову стрічку вашого браузера: <span style=\"text-wrap: balance; color: #C6252A\">{reset_password_link}</span></p>
</td>
</tr>
<tr>
<td style=\"padding: 20px; font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #5B5B5B;\">
<p style=\"margin: 0 0 10px 0;\">Ця форма для відновлення паролю може бути використана лише один раз через 5 хвилин буде недійсною. </p>
</td>
</tr>
<tr>
<td style=\"padding: 20px; font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #1B2028;\">
<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_LINK);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}