<?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 Version20220120075834 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('ALTER TABLE history_send ADD recipient VARCHAR(255) NOT NULL');
$this->addSql('ALTER TABLE history_send DROP response');
$this->addSql('ALTER TABLE history_send DROP old_recipient');
$this->addSql('ALTER TABLE history_send DROP new_recipient');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE history_send ADD response TEXT NOT NULL');
$this->addSql('ALTER TABLE history_send ADD new_recipient VARCHAR(255) NOT NULL');
$this->addSql('ALTER TABLE history_send RENAME COLUMN recipient TO old_recipient');
}
}