migrations/Version20230526143905.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 Version20230526143905 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;\">Esqueceu a password?</span> <br><br>
  25.                         No seguimento do seu pedido de recuperação de password, estamos a enviar este e-mail com o link para que possa redefinir a sua password.<br>                       
  26.                         Clique no link abaixo para ser redirecionado(a) para a página de redefinição de password:<br><br>
  27.                         <div style=\"font-family: Helvetica, sans-serif;font-size: 100%;margin: 0;padding: 0;margin-top: 0\"> 
  28.                             <!--[if mso]> <v:roundrect href=\"{{forgotpasswordlink}}\" style=\"width:200px;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]--> 
  29.                             <a href=\"{{forgotpasswordlink}}\" 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\">Redefinir Password</a> <!--[if mso]> </center> </v:textbox> </v:roundrect> <![endif]-->
  30.                         </div> <br>
  31.                         ou copie o url abaixo para a sua janela de browser <br>{{forgotpasswordlink}} 
  32.                     </td> 
  33.                 </tr>
  34.                 ' 
  35.             WHERE  `machine_name`='webuserforgotpassword' 
  36.             AND `language_code`='pt';
  37.         ");
  38.         $this->addSql("
  39.             UPDATE `std_notifications` SET `email_body`=
  40.                 '
  41.                 <tr> 
  42.                     <td align=\"left\" valign=\"top\" width=\"100%\" style=\"text-align:left;\"> 
  43.                         <span style=\"color: #000000; font-size:22px; font-weight:bold;\">Dear {{ webuser.name|default }},</span> <br><br>                       
  44.                         <span style=\"color: #000000; font-size:34px; font-weight:bold;\">Forgot your password?</span> <br><br>
  45.                        Following your request for password recovery, we are sending this email with the link for you to reset your password.<br>
  46.                        Click the link below to be redirected to the password reset page:<br><br>                      
  47.                         <div style=\"font-family: Helvetica, sans-serif;font-size: 100%;margin: 0;padding: 0;margin-top: 0\"> 
  48.                             <!--[if mso]> <v:roundrect href=\"{{forgotpasswordlink}}\" style=\"width:200px;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]--> 
  49.                             <a href=\"{{forgotpasswordlink}}\" 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]-->
  50.                         </div> <br>
  51.                         or copy the url below to your browser window <br>{{forgotpasswordlink}} 
  52.                     </td> 
  53.                 </tr>
  54.                 ' 
  55.             WHERE  `machine_name`='webuserforgotpassword' 
  56.             AND `language_code`='en';
  57.         ");
  58.     }
  59.     public function down(Schema $schema): void
  60.     {
  61.         // this down() migration is auto-generated, please modify it to your needs
  62.         $this->addSql("
  63.             UPDATE `std_notifications` SET `email_body`='Para definir uma nova password clique no link abaixo <br><a href=\"{{forgotpasswordlink}}\">Recuperar password</a>' WHERE  `machine_name`='webuserforgotpassword' AND `language_code`='pt';
  64.         ");
  65.         $this->addSql("
  66.             UPDATE `std_notifications` SET `email_body`='Para definir uma nova password clique no link abaixo <br><a href=\"{{forgotpasswordlink}}\">Recuperar password</a>' WHERE  `machine_name`='webuserforgotpassword' AND `language_code`='en';
  67.         ");
  68.     }
  69. }