<?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 Version20220802130123 extends AbstractMigration
{
public function getDescription(): string
{
return 'Change identifier of templates';
}
public function up(Schema $schema): void
{
$this->addSql("UPDATE notification_template SET identifier = 'SELLER_OBJECT_NOT_SOLD_SECOND_NOR' WHERE identifier = 'SELLER_OBJECT_NOT_SOLD_NOR' and notification_type = 31;");
$this->addSql("UPDATE notification_template SET identifier = 'SELLER_OBJECT_NOT_SOLD_SECOND_ENG' WHERE identifier = 'SELLER_OBJECT_NOT_SOLD_ENG' and notification_type = 31;");
$this->addSql("UPDATE notification_template SET identifier = 'SELLER_OBJECT_NOT_SOLD_THIRD_NOR' WHERE identifier = 'SELLER_OBJECT_NOT_SOLD_SECOND_NOR' and notification_type = 32;");
$this->addSql("UPDATE notification_template SET identifier = 'SELLER_OBJECT_NOT_SOLD_THIRD_ENG' WHERE identifier = 'SELLER_OBJECT_NOT_SOLD_SECOND_ENG' and notification_type = 32;");
}
public function down(Schema $schema): void
{
}
}