<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use App\Notification\AdvanceBidNotification;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220607164820 extends AbstractMigration
{
public function getDescription(): string
{
return 'Updated name in ConfirmationAdvanceBidLiveAuctionNotification';
}
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>Tusen takk for ditt forhåndsbud.</p> <p>Ditt bud <b>%bid_value%</b></p> <p>Katalognummer <b>%catalogue_number%</b></p> <p>Kunstner <b>%artist%, %title%</b></p> <p>Vurdering <b>%estimate_low% - %estimate_high%</b></p> <p><b>%auction_title%</b></p> <p>Klassisk auksjon, %auction_date_time%</p> <p>Rolfsbuktveien 4e-f, 1364 Fornebu</p> <p>Våre salgsvilkår finner du her.</p> <p>Si ifra om det er noe annet Blomqvist kan bistå deg med.</p> %footer%";
$text_email_en = "%header% <p>Hi %user_name%</p> <p>Thank you for your advance bid for the upcoming live auction at Blomqvist.</p> <p>Your bid %bid_value%</p> <p>Catalogue number <b>%catalogue_number%</b></p> <p>Artist <b>%artist%, %title%</b></p> <p>Estimate <b>%estimate_low% - %estimate_high%</b></p> <p><b>%auction_title%</b></p> <p>Live auction, %auction_date_time%</p> <p>Rolfsbuktveien 4 e-f, 1364 Fornebu</p> <p>Out conditions of sale are found here.</p> <p>Please let us know if you need anything else from the team here at Blomqvist. We look forward to assisting you.</p> %footer%";
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_no}' WHERE notification_type = " . AdvanceBidNotification::TYPE . " AND notification_language = 'nor-NO'");
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_en}' WHERE notification_type = " . AdvanceBidNotification::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>Tusen takk for ditt forhåndsbud.</p> <p>Ditt bud <b>%bid_value%</b></p> <p>Katalognummer <b>%catalogue_number%</b></p> <p>Kunstner <b>%artist%, %title%</b></p> <p>Vurdering <b>%estimate_low% - %estimate_high%</b></p> <p><b>%auction_title%</b></p> <p>Klassisk auksjon, %auction_date_time%</p> <p>Rolfsbuktveien 4e-f, 1364 Fornebu</p> <p>Våre salgsvilkår finner du her.</p> <p>Si ifra om det er noe annet Blomqvist kan bistå deg med.</p> %footer%";
$text_email_en = "%header% <p>Hei %user_first_name% %user_last_name%</p> <p>Thank you for your advance bid for the upcoming live auction at Blomqvist.</p> <p>Your bid %bid_value%</p> <p>Catalogue number <b>%catalogue_number%</b></p> <p>Artist <b>%artist%, %title%</b></p> <p>Estimate <b>%estimate_low% - %estimate_high%</b></p> <p><b>%auction_title%</b></p> <p>Live auction, %auction_date_time%</p> <p>Rolfsbuktveien 4 e-f, 1364 Fornebu</p> <p>Out conditions of sale are found here.</p> <p>Please let us know if you need anything else from the team here at Blomqvist. We look forward to assisting you.</p> %footer%";
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_no}' WHERE notification_type = " . AdvanceBidNotification::TYPE . " AND notification_language = 'nor-NO'");
$this->addSql("UPDATE notification_template SET text_email = '{$text_email_en}' WHERE notification_type = " . AdvanceBidNotification::TYPE . " AND notification_language = 'eng-GB'");
}
}