<?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 Version20220722143828 extends AbstractMigration
{
public function getDescription(): string
{
return 'Updated notification tables';
}
public function up(Schema $schema): void
{
$this->addSql("DELETE FROM notification_template WHERE notification_type IN (40,41);");
}
public function down(Schema $schema): void
{
$this->addSql("INSERT INTO notification_template (id, 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 (47, 'HEADER_NOR', 40, 'HEADER', null, 'HEADER', '2022-03-30 14:35:44', '2022-03-30 14:35:44', null, 'nor-NO', null, 0, 7, null, null, 'HEADER');");
$this->addSql("INSERT INTO notification_template (id, 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 (48, 'FOOTER_NOR', 41, 'FOOTER', null, 'FOOTER', '2022-03-30 14:35:44', '2022-03-30 14:35:44', null, 'nor-NO', null, 0, 7, null, null, 'FOOTER');");
$this->addSql("INSERT INTO notification_template (id, 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 (81, 'HEADER_ENG', 40, 'HEADER', null, 'HEADER', '2022-03-30 14:35:44', '2022-03-30 14:35:44', null, 'eng-GB', null, 0, 7, null, null, 'HEADER');");
$this->addSql("INSERT INTO notification_template (id, 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 (82, 'FOOTER_ENG', 41, 'FOOTER', null, 'FOOTER', '2022-03-30 14:35:44', '2022-03-30 14:35:44', null, 'eng-GB', null, 0, 7, null, null, 'FOOTER');");
}
}