<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use App\Notification\UserPaymentCardUpdatedNotification;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220531162718 extends AbstractMigration
{
public function getDescription(): string
{
return 'Added blomqvist/min side links to UserPaymentCardUpdatedNotification';
}
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>Ditt betalingskort på Blomqvist.no har blitt oppdatert. Endringene kan du se på <a href=\'%link_min_side%\'><u>Min Side</u></a> på <a href=\'%link_blomqvist%\'><u>Blomqvist.no</u></a>. Dersom det ikke var du som gjorde denne endringene, ta kontakt med oss på <a href=\'mailto:support@blomqvist.no\'>support@blomqvist.no</a></p> <p><a href=\'%link_live_auction%\'><b>Utforsk våre auksjoner her</b></a></p> %footer%";
$text_email_en = "%header% <p>Hei %user_name%</p> <p>Your saved payment card on Blomqvist.no has been updated. The changes can be reviewed on <a href=\'%link_min_side%\'><u>My Page</u></a> on <a href=\'%link_blomqvist%\'><u>Blomqvist.no</u></a>. has been updated. If this change was not made by you, please contact us at <a href=\'mailto:support@blomqvist.no\'>support@blomqvist.no</a></p> <p><a href=\'%link_live_auction%\'><b>Explore all ongoing auctions here.</b></a></p> %footer%";
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_no}' WHERE notification_type = " . UserPaymentCardUpdatedNotification::TYPE . " AND notification_language = 'nor-NO'");
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_en}' WHERE notification_type = " . UserPaymentCardUpdatedNotification::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_name%</p> <p>Ditt betalingskort på Blomqvist.no har blitt oppdatert. Endringene kan du se på <u>Min Side</u> på <u>Blomqvist.no</u>. Dersom det ikke var du som gjorde denne endringene, ta kontakt med oss på <a href='mailto:support@blomqvist.no'>support@blomqvist.no</a></p> <p><a href='%link_live_auction%'><b>Utforsk våre auksjoner her</b></a></p> %footer% ";
$text_email_en = "%header% <p>Hei %user_name%</p> <p>Your saved payment card on Blomqvist.no has been updated. The changes can be reviewed on <u>My Page</u> on <u>Blomqvist.no</u>. has been updated. If this change was not made by you, please contact us at <a href='mailto:support@blomqvist.no'>support@blomqvist.no</a></p> <p><a href='%link_live_auction%'><b>Explore all ongoing auctions here.</b></a></p> %footer%";
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_no}' WHERE notification_type = " . UserPaymentCardUpdatedNotification::TYPE . " AND notification_language = 'nor-NO'");
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_en}' WHERE notification_type = " . UserPaymentCardUpdatedNotification::TYPE . " AND notification_language = 'eng-GB'");
}
}