<?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 Version20220714150000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Updated notification tables';
}
public function up(Schema $schema): void
{
$this->addSql("alter table notification_customer modify customer_id int null;");
$this->addSql("alter table notification_customer add name varchar(255) null, add email varchar(255) null;");
}
public function down(Schema $schema): void
{
$this->addSql("alter table notification_customer drop column name, drop column email;");
}
}