<?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 Version20230525092653 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;\"> Bem-vindo! </span> <br><br>
Para começar a desfrutar de todos os recursos e benefícios que o nosso site oferece, é necessário ativar a sua conta. <br>
A ativação é um processo rápido e fácil. Basta seguir as etapas abaixo:<br>
Clique no botão abaixo para confirmar o seu registo no site. <br><br>
<div style=\"font-family: Helvetica, sans-serif;font-size: 100%;margin: 0;padding: 0;margin-top: 0\">
<!--[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]-->
<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]-->
</div> <br>
ou copie o url abaixo para a sua janela de browser <br>{{activationlink}}
</td>
</tr>
'
WHERE `machine_name`='webuseractivation'
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;\"> Welcome! </span> <br><br>
To start enjoying all the features and benefits that our website offers, you need to activate your account. <br>
Activation is a quick and easy process. Just follow the steps below:<br>
Click the button below to confirm your registration on the site. <br><br>
<div style=\"font-family: Helvetica, sans-serif;font-size: 100%;margin: 0;padding: 0;margin-top: 0\">
<!--[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]-->
<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]-->
</div> <br>
or copy the url below to your browser window <br>{{activationlink}}
</td>
</tr>
'
WHERE `machine_name`='webuseractivation'
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`='Olá para concluir o seu registo clique no link abaixo <br> <a href=\"{{activationlink}}\">Activar</a>' WHERE `machine_name`='webuseractivation' AND `language_code`='pt';
");
$this->addSql("
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';
");
}
}