migrations/Version20240301101000.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use App\Constants\MailEventConstants;
  5. use Doctrine\DBAL\Schema\Schema;
  6. use Doctrine\Migrations\AbstractMigration;
  7. /**
  8.  * Auto-generated Migration: Please modify to your needs!
  9.  */
  10. final class Version20240301101000 extends AbstractMigration
  11. {
  12.     public function getDescription(): string
  13.     {
  14.         return '';
  15.     }
  16.     public function up(Schema $schema): void
  17.     {
  18.         $body "<table>
  19.     <tbody>
  20.         <tr>
  21.             <td style=\"padding: 20px; font-family:\'Noto Sans\', sans-serif; font-size: 24px; line-height: 26px; color: #1B2028;\">
  22.             <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>
  23.             </td>
  24.         </tr>
  25.         <tr>
  26.             <td style=\"padding: 20px; font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #1B2028;\">
  27.             <p style=\"margin: 0 0 10px 0;\">Ваш новий пароль для входу у особистий кабінет та перегляду історії покупок eSim. Не передавайте цей пароль нікому і зберігайте його в надійному місці!</p>
  28.             </td>
  29.         </tr>
  30.         <tr>
  31.         </tr>
  32.     </tbody>
  33. </table>
  34. <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" style=\"margin: auto;\">
  35.     <tbody>
  36.         <tr>
  37.             <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>
  38.         </tr>
  39.     </tbody>
  40. </table>
  41. <table>
  42.     <tbody>
  43.         <tr>
  44.             <td>
  45.             <p style=\"margin-bottom: 0; font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #909299;\">Якщо цей пароль не буле використано протягом 30 хвилин - лист з паролем буде не дійсний!</p>
  46.             </td>
  47.         </tr>
  48.         <tr>
  49.             <td>
  50.             <div><img alt=\"\" height=\"36px\" src=\"{http_host}/build/images/warning.png\" style=\"width: 36px; height: 36px; margin-right: 10px; float: left\" width=\"36px\" />
  51.             <p style=\"margin-bottom: 0; font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #909299;\">Якщо ви не намагалися ввійти чи створити обліковий запис на eSIM АТБ, можете сміливо ігнорувати цей електронний лист.</p>
  52.             </div>
  53.             </td>
  54.         </tr>
  55.     </tbody>
  56. </table>
  57.     ";
  58.         $this->addSql("UPDATE mail_template SET body = '{$body}' WHERE event = ".MailEventConstants::PASSWORD_RESET);
  59.     }
  60.     public function down(Schema $schema): void
  61.     {
  62.         // this down() migration is auto-generated, please modify it to your needs
  63.     }
  64. }