<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220526223637 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add N11B - Auction ending soon 2H, online notification template';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql("INSERT INTO notification_template (notification_type,notification_language,text_email,text_sms,subject,created_at,updated_at,text_system) VALUES
(19,'nor-NO','%header% <p>Hei %user_name% </p> <p>Auksjonen til en av dine favoritter avsluttes om to timer. Du kan følge auksjonen på <u>Min Side</u> og på <u>Blomqvist.no</u>.</p> <br> <hr> <p>Objektnummer: %lot_number%, %link_to_lot%</p> <p>Beskrivelse: %artist%, %title%</p> <p>Vurdering: %low_estimate% - %high_estimate%</p> <p>Nåværende bud: %current_bid%</p> <p>Auksjonsavslutning: %auction_end_date_time%</p> <hr> <br> <p>Du kan endre dine preferanser for varslinger på <u>Min Side</u></p> %footer%',NULL,'Auksjon avsluttes snart','2022-03-30 14:35:44','2022-03-30 14:35:44',NULL),
(19,'eng-GB','%header% <p>Hi %user_name% </p> <p>The auction for a lot you have favorited is ending in two hours. You may follow the auction on <u>My Page</u> and on <u>Blomqvist.no</u>.</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>Current bid: %current_bid%</p> <p>The auction ends: %auction_end_date_time%</p> <hr> <br> <p>Your notification preferences can be changed on <u>My Page</u></p> %footer%',NULL,'Auction ending soon','2022-03-30 14:35:44','2022-03-30 14:35:44',NULL)");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DELETE FROM notification_template WHERE notification_type = 19');
}
}