migrations/Version20230525092653.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20230525092653 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         $this->addSql("
  19.             UPDATE `std_notifications` SET `email_body`=
  20.                 '
  21.                 <tr> 
  22.                     <td align=\"left\" valign=\"top\" width=\"100%\" style=\"text-align:left;\"> 
  23.                         <span style=\"color: #000000; font-size:22px; font-weight:bold;\">Caro (a) {{ webuser.name|default }},</span> <br><br>
  24.                         <span style=\"color: #000000; font-size:34px; font-weight:bold;\"> Bem-vindo! </span> <br><br>
  25.                         Para começar a desfrutar de todos os recursos e benefícios que o nosso site oferece, é necessário ativar a sua conta. <br>
  26.                         A ativação é um processo rápido e fácil. Basta seguir as etapas abaixo:<br>
  27.                         Clique no botão abaixo para confirmar o seu registo no site. <br><br>
  28.                         <div style=\"font-family: Helvetica, sans-serif;font-size: 100%;margin: 0;padding: 0;margin-top: 0\"> 
  29.                             <!--[if mso]> <v:roundrect href=\"{{activationlink}}\" style=\"width:150px;height:40px;v-text-anchor:middle;\" arcsize=\"50%\" stroke=\"f\" fillcolor=\"#000000\" xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:word\"> <w:anchorlock/> <v:textbox inset=\"0,0,0,0\"> <center> <![endif]--> 
  30.                             <a href=\"{{activationlink}}\" style=\"font-family: Helvetica, sans-serif;font-size: 14px;margin: 0;padding: 0 24px;color: #ffffff;margin-top: 0;font-weight: bold;line-height: 40px;letter-spacing: 0.1ch;text-transform: uppercase;background-color: #000000;border-radius: 5000px;display: inline-block;text-align: center;text-decoration: none;white-space: nowrap;-webkit-text-size-adjust: none\">Activar</a> <!--[if mso]> </center> </v:textbox> </v:roundrect> <![endif]-->
  31.                         </div> <br>
  32.                             ou copie o url abaixo para a sua janela de browser <br>{{activationlink}} 
  33.                     </td> 
  34.                 </tr>
  35.                 ' 
  36.             WHERE  `machine_name`='webuseractivation' 
  37.             AND `language_code`='pt';
  38.         ");
  39.         $this->addSql("
  40.             UPDATE `std_notifications` SET `email_body`=
  41.                 '
  42.                 <tr> 
  43.                     <td align=\"left\" valign=\"top\" width=\"100%\" style=\"text-align:left;\"> 
  44.                         <span style=\"color: #000000; font-size:22px; font-weight:bold;\">Dear {{ webuser.name|default }},</span> <br><br>
  45.                         <span style=\"color: #000000; font-size:34px; font-weight:bold;\"> Welcome! </span> <br><br>
  46.                         To start enjoying all the features and benefits that our website offers, you need to activate your account. <br>
  47.                         Activation is a quick and easy process. Just follow the steps below:<br>
  48.                         Click the button below to confirm your registration on the site. <br><br>
  49.                         <div style=\"font-family: Helvetica, sans-serif;font-size: 100%;margin: 0;padding: 0;margin-top: 0\"> 
  50.                             <!--[if mso]> <v:roundrect href=\"{{activationlink}}\" style=\"width:150px;height:40px;v-text-anchor:middle;\" arcsize=\"50%\" stroke=\"f\" fillcolor=\"#000000\" xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:word\"> <w:anchorlock/> <v:textbox inset=\"0,0,0,0\"> <center> <![endif]--> 
  51.                             <a href=\"{{activationlink}}\" style=\"font-family: Helvetica, sans-serif;font-size: 14px;margin: 0;padding: 0 24px;color: #ffffff;margin-top: 0;font-weight: bold;line-height: 40px;letter-spacing: 0.1ch;text-transform: uppercase;background-color: #000000;border-radius: 5000px;display: inline-block;text-align: center;text-decoration: none;white-space: nowrap;-webkit-text-size-adjust: none\">Activate</a> <!--[if mso]> </center> </v:textbox> </v:roundrect> <![endif]-->
  52.                         </div> <br>
  53.                         or copy the url below to your browser window <br>{{activationlink}} 
  54.                     </td> 
  55.                 </tr>
  56.                 ' 
  57.             WHERE  `machine_name`='webuseractivation' 
  58.             AND `language_code`='en';
  59.         ");
  60.     }
  61.     public function down(Schema $schema): void
  62.     {
  63.         // this down() migration is auto-generated, please modify it to your needs
  64.         $this->addSql("
  65.             UPDATE `std_notifications` SET `email_body`='Olá para concluir o seu registo clique no link abaixo <br> <a href=\"{{activationlink}}\">Activar</a>' WHERE  `machine_name`='webuseractivation' AND `language_code`='pt';
  66.         ");
  67.         $this->addSql("
  68.             UPDATE `std_notifications` SET `email_body`='Olá para concluir o seu registo clique no link abaixo <br> <a href=\"{{activationlink}}\">Activar</a>' WHERE  `machine_name`='webuseractivation' AND `language_code`='en';
  69.         ");
  70.         
  71.     }
  72. }