<?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 Version20220407004646 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('DELETE FROM notification_customer');
$this->addSql('DELETE FROM notification_template');
$this->addSql('ALTER TABLE notification_template ADD notification_language VARCHAR(10) NOT NULL');
$this->addSql('DROP INDEX UNIQ_C270272634E21C13 ON notification_template');
$this->addSql('CREATE UNIQUE INDEX UNIQ_C270272681CB4910 ON notification_template (notification_language, notification_type)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP INDEX UNIQ_C270272681CB4910 ON notification_template');
$this->addSql('ALTER TABLE notification_template DROP notification_language');
$this->addSql('DROP INDEX UNIQ_C270272634E21C13 ON notification_template');
}
}