<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use App\Notification\AutomaticPaymentSuccessfullReceiptAttachedAsPDFNotification;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220519185526 extends AbstractMigration
{
public function getDescription(): string
{
return 'Update AutomaticPaymentSuccessfullReceiptAttachedAsPDFNotification user_name';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$text_email_no = "%header% <p>Hei %user_name%</p> <p>Gratulerer med ditt nye unike objekt fra Blomqvist. Automatisk betaling har blitt gjennomført med ditt lagrede kort hos Blomqvist. Kvittering er vedlagt.</p> <p><u>Detaljer om utlevering og forsendelse finner du her.</u></p> <p>Si ifra om det er noe vi i Blomqvist kan hjelpe deg med.</p> %footer%";
$text_email_en = "%header% <p>Hi %user_name%</p> <p>Congratulation on you new lot from Blomqvist. An automatic payment with your stored card has been made. Please find your receipt attached.</p> <p><u>For details regarding collection and shipping, see here.</u></p> <p>Let us know if there is anything we can do for you.</p> %footer% ";
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_no}' WHERE notification_type = " . AutomaticPaymentSuccessfullReceiptAttachedAsPDFNotification::TYPE . " AND notification_language = 'nor-NO'");
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_en}' WHERE notification_type = " . AutomaticPaymentSuccessfullReceiptAttachedAsPDFNotification::TYPE . " AND notification_language = 'eng-GB'");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$text_email_no = "%header% <p>Hei %user_first_name% %user_last_name%</p> <p>Gratulerer med ditt nye unike objekt fra Blomqvist. Automatisk betaling har blitt gjennomført med ditt lagrede kort hos Blomqvist. Kvittering er vedlagt.</p> <p><u>Detaljer om utlevering og forsendelse finner du her.</u></p> <p>Si ifra om det er noe vi i Blomqvist kan hjelpe deg med.</p> %footer%";
$text_email_en = "%header% <p>Hei %user_first_name% %user_last_name%</p> <p>Congratulation on you new lot from Blomqvist. An automatic payment with your stored card has been made. Please find your receipt attached.</p> <p><u>For details regarding collection and shipping, see here.</u></p> <p>Let us know if there is anything we can do for you.</p> %footer% ";
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_no}' WHERE notification_type = " . AutomaticPaymentSuccessfullReceiptAttachedAsPDFNotification::TYPE . " AND notification_language = 'nor-NO'");
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_en}' WHERE notification_type = " . AutomaticPaymentSuccessfullReceiptAttachedAsPDFNotification::TYPE . " AND notification_language = 'eng-GB'");
}
}