<?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 Version20220721133212 extends AbstractMigration
{
public function getDescription(): string
{
return 'Updated notification tables';
}
public function up(Schema $schema): void
{
$this->addSql("INSERT INTO notification_template (identifier, notification_type, text_email, subject, notification_language, setting, profile_default) VALUES
('EXPERT_CONTRACT_NOR', 43, '%header% <p>Hi %expert_name%, du mottok en ny melding fra et kontrakt</p> <p>User: %user_name%</p> <p>Email: %user_email%</p> <p>Telefon: %user_phone%</p> <p>Kontrakt: %contract%</p> <p>Beskrivelse: %message%</p> %footer%', 'Spesialist', 'nor-NO', 61, 7),
('EXPERT_CONTRACT_ENG', 43, '%header% <p>Hi %expert_name%, you received a new message from a contract</p> <p>User: %user_name%</p> <p>Email: %user_email%</p> <p>Phone: %user_phone%</p> <p>Contract: %contract%</p> <p>Description: %message%</p> %footer%', 'Specialist', 'eng-GB', 61, 7);");
}
public function down(Schema $schema): void
{
$this->addSql("DELETE FROM notification_template WHERE notification_type = 43;");
}
}