<?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 Version20220329194322 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("ALTER TABLE vendors ADD COLUMN email VARCHAR(255) DEFAULT NULL");
$this->addSql("UPDATE vendors SET email='info@coopersmithcc.net' WHERE id = 3");
$this->addSql("UPDATE vendors SET email='esther@tal-programs.org;studentinfo@tal-programs.org' WHERE id IN (1,4)");
}
public function down(Schema $schema): void
{
$this->addSql("ALTER TABLE vendors DROP COLUMN email");
}
}