<?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 Version20221017134323 extends AbstractMigration
{
public function getDescription(): string
{
return 'Making the "message" column longer so emails can fit.';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE message CHANGE message message LONGTEXT NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE message CHANGE message message VARCHAR(255) NOT NULL');
}
}