<?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 Version20220621182543 extends AbstractMigration
{
public function getDescription(): string
{
return 'Adjustment in identifier column in notification_template';
}
public function up(Schema $schema): void
{
$this->addSql('DELETE FROM notification_template WHERE notification_type = 14');
// nor-No
$this->addSql('UPDATE notification_template SET identifier = \'HEADER_NOR\' WHERE notification_type = 40 AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'FOOTER_NOR\' WHERE notification_type = 41 AND notification_language = \'nor-NO\'');
//eng-GB
$this->addSql('UPDATE notification_template SET identifier = \'HEADER_ENG\' WHERE notification_type = 40 AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'FOOTER_ENG\' WHERE notification_type = 41 AND notification_language = \'eng-GB\'');
}
public function down(Schema $schema): void
{
}
}