<?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 Version20220726181324 extends AbstractMigration
{
public function getDescription(): string
{
return 'New templates for unsold objects';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql("INSERT INTO notification_template (identifier, notification_type, text_email, text_sms, subject, created_at, updated_at, text_system, notification_language, category, setting, profile_default, icon, color, profile_title) VALUES ('SELLER_OBJECT_NOT_SOLD_NOR', 44, '<p>Hei %user_name%</p> <p>Resultat fra din auksjon finner du under. Oppgjørsbeløp, tilslag minus selger salær og andre kostnader, og dato for oppgjør finner du på <u>Min Side</u> på Blomqvist.no. Oppgjør utbetales vanligvis 30 dager etter auksjonsavslutningen.</p> <p>Varen din er ikke solgt</p> <br> <hr> <p>Objektnummer: %lot_number%, %link_to_lot%</p> <p>Beskrivelse: %object_title%</p> <p>Vurdering: %evaluation%</p> <hr> <br> <p>Usolgte objekter forsøkt en gang på auksjon publiseres på nytt. Usolgte objekter forsøkt to ganger må få en redusert startpris for å et tredje forsøk. Startprisen justerer du selv på Min Side. Usolgte objekter forsøkt tre ganger må hentes i retur. <u>Mer detaljer om usolgte objekter finner du her</u>.</p>', null, 'Auksjonsresultat', '2022-03-30 14:35:44', '2022-03-30 14:35:44', null, 'nor-NO', 'Mine salg', 53, 6, null, 'yellow', 'Auksjonsresultat');");
$this->addSql("INSERT INTO notification_template (identifier, notification_type, text_email, text_sms, subject, created_at, updated_at, text_system, notification_language, category, setting, profile_default, icon, color, profile_title) VALUES ('SELLER_OBJECT_NOT_SOLD_ENG', 44, '<p>Hei %user_name%</p> <p>The result from your auction is listed below. The settlement amount, hammer price minus the seller''s commissions and other expenses, and the settlement date are available on <u>My Page</u> on Blomqvist.no. The settlement is usually paid 30 days after the auction ends.</p> <p>Your object was not sold</p> <br> <hr> <p>Lot number: %lot_number%, %link_to_lot%</p> <p>Description: %object_title%</p> <p>Estimate: %evaluation%</p> <hr> <br> <p>Unsold lots published once at auction will be published again. Unsold lots attempted twice must get an adjustment to the start price before they are attempted again. Unsold lots published three times must be collected. <u>More details regarding unsold lots can be found here</u>.</p>', null, 'Auction result', '2022-03-30 14:35:44', '2022-03-30 14:35:44', null, 'eng-GB', 'Mine salg', 53, 6, null, 'yellow', 'Auction result');");
}
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 = 44)');
}
}