<?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 Version20220928114012 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add new template for classic expert notification';
}
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 ('CLASSIC_EXPERT_NOR', 46, '<p>Hei</p> <p>En kunde ønsker besiktigelsesrapport på et objekt, informasjon finner du under:</p> <p>%user_name%</p> <p>%user_email%</p> <p>%user_phone%</p> <p>%address%</p> <p>Objekt:</p> <p>Katalognummer: %catalogue_number%</p> <p>Objektnr: %lot_number%</p> <p>Beskrivelse: %object_title%</p> <p>Vurdering: %evaluation%</p>', null, 'Kunde ønsker besiktigelsesrapport', '2022-09-28 11:40:12', '2022-09-28 11:40:12', null, 'nor-NO', 'Kunde ønsker besiktigelsesrapport', 0, 0, null, null, 'Kunde ønsker besiktigelsesrapport');");
$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 ('CLASSIC_EXPERT_ENG', 46, '<p>Hello</p> <p>A customer wants an inspection report on an object, information can be found below:</p> <p>%user_name%</p> <p>%user_email%</p> <p>%user_phone%</p> <p>%address%</p> <p>Object:</p> <p>Catalogue number: %catalogue_number%</p> <p>Object number: %lot_number%</p> <p>Description: %object_title%</p> <p>Evaluation: %evaluation%</p>', null, 'The customer wants an inspection report', '2022-09-28 11:40:12', '2022-09-28 11:40:12', null, 'eng-GB', 'The customer wants an inspection report', 0, 0, null, null, 'The customer wants an inspection report');");
}
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 = 46)');
}
}