<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use App\Notification\CardPaymentUnsuccessfulLateFeeNotification;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220523104545 extends AbstractMigration
{
public function getDescription(): string
{
return 'Update CardPaymentUnsuccessfulLateFeeNotification 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>Automatisk betaling av ditt kjøpt feilet. Vennligst gå til <u>Min Side</u> for å velge en annen betalingsmetode.</p> <br> <hr> <p>Objektnummer: %lot_number%, %link_to_lot%</p> <p>Beskrivelse: %artist%, %title%</p> <p>Vurdering: %low_estimate% - %high_estimate%</p> <p>Tilslag: %hammer_price% / %winning_bid%</p> <hr> <br> <p>Total kostnad: %total%</p> %footer%";
$text_email_en = "%header% <p>Hi %user_name%</p> <p>Automatic payment for your purchase failed. Please go to <u>My Page</u> to complete the purchase.</p> <br> <hr> <p>Lot number: %lot_number%, %link_to_lot%</p> <p>Description: %artist%, %title%</p> <p>Estimate: %low_estimate% - %high_estimate%</p> <p>Hammer price : %hammer_price% / %winning_bid%</p> <hr> <br> <p>Total cost: %total%</p> %footer%";
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_no}' WHERE notification_type = " . CardPaymentUnsuccessfulLateFeeNotification::TYPE . " AND notification_language = 'nor-NO'");
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_en}' WHERE notification_type = " . CardPaymentUnsuccessfulLateFeeNotification::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>Automatisk betaling av ditt kjøpt feilet. Vennligst gå til <u>Min Side</u> for å velge en annen betalingsmetode.</p> <br> <hr> <p>Objektnummer: %lot_number%, %link_to_lot%</p> <p>Beskrivelse: %artist%, %title%</p> <p>Vurdering: %low_estimate% - %high_estimate%</p> <p>Tilslag: %hammer_price% / %winning_bid%</p> <hr> <br> <p>Total kostnad: %total%</p> %footer%";
$text_email_en = "%header% <p>Hei %user_first_name% %user_last_name%</p> <p>Automatic payment for your purchase failed. Please go to <u>My Page</u> to complete the purchase.</p> <br> <hr> <p>Lot number: %lot_number%, %link_to_lot%</p> <p>Description: %artist%, %title%</p> <p>Estimate: %low_estimate% - %high_estimate%</p> <p>Hammer price : %hammer_price% / %winning_bid%</p> <hr> <br> <p>Total cost: %total%</p> %footer%";
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_no}' WHERE notification_type = " . CardPaymentUnsuccessfulLateFeeNotification::TYPE . " AND notification_language = 'nor-NO'");
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_en}' WHERE notification_type = " . CardPaymentUnsuccessfulLateFeeNotification::TYPE . " AND notification_language = 'eng-GB'");
}
}