<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use App\Notification\PaymentReceiptReceiptAttachedAsPDFNotification;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220426181737 extends AbstractMigration
{
public function getDescription(): string
{
return 'Update PaymentReceiptReceiptAttachedAsPDFNotification variable';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$text_email_no = "%header% <p>Hei %name%</p> <p>Gratulerer med ditt nye unike objekt fra Blomqvist.</p> <p>Takk for betaling. Kvittering finner du 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 %name%</p> <p>Congratulation on you new lot from Blomqvist. Thank you for your payment. 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 = " . PaymentReceiptReceiptAttachedAsPDFNotification::TYPE . " AND notification_language = 'nor-NO'");
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_en}' WHERE notification_type = " . PaymentReceiptReceiptAttachedAsPDFNotification::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.</p> <p>Takk for betaling. Kvittering finner du 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. Thank you for your payment. 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 = " . PaymentReceiptReceiptAttachedAsPDFNotification::TYPE . " AND notification_language = 'nor-NO'");
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_en}' WHERE notification_type = " . PaymentReceiptReceiptAttachedAsPDFNotification::TYPE . " AND notification_language = 'eng-GB'");
}
}