<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20230526143905 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql("
UPDATE `std_notifications` SET `email_body`=
'
<tr>
<td align=\"left\" valign=\"top\" width=\"100%\" style=\"text-align:left;\">
<span style=\"color: #000000; font-size:22px; font-weight:bold;\">Caro (a) {{ webuser.name|default }},</span> <br><br>
<span style=\"color: #000000; font-size:34px; font-weight:bold;\">Esqueceu a password?</span> <br><br>
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>
Clique no link abaixo para ser redirecionado(a) para a página de redefinição de password:<br><br>
<div style=\"font-family: Helvetica, sans-serif;font-size: 100%;margin: 0;padding: 0;margin-top: 0\">
<!--[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]-->
<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]-->
</div> <br>
ou copie o url abaixo para a sua janela de browser <br>{{forgotpasswordlink}}
</td>
</tr>
'
WHERE `machine_name`='webuserforgotpassword'
AND `language_code`='pt';
");
$this->addSql("
UPDATE `std_notifications` SET `email_body`=
'
<tr>
<td align=\"left\" valign=\"top\" width=\"100%\" style=\"text-align:left;\">
<span style=\"color: #000000; font-size:22px; font-weight:bold;\">Dear {{ webuser.name|default }},</span> <br><br>
<span style=\"color: #000000; font-size:34px; font-weight:bold;\">Forgot your password?</span> <br><br>
Following your request for password recovery, we are sending this email with the link for you to reset your password.<br>
Click the link below to be redirected to the password reset page:<br><br>
<div style=\"font-family: Helvetica, sans-serif;font-size: 100%;margin: 0;padding: 0;margin-top: 0\">
<!--[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]-->
<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]-->
</div> <br>
or copy the url below to your browser window <br>{{forgotpasswordlink}}
</td>
</tr>
'
WHERE `machine_name`='webuserforgotpassword'
AND `language_code`='en';
");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("
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';
");
$this->addSql("
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';
");
}
}