<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20250420193031 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add date for mailing sending';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE mmpp_dossier_inscription ADD internship_ar_sended_at DATE DEFAULT NULL');
$this->addSql('ALTER TABLE mmpp_dossier_inscription ADD dossier_ar_sended_at DATE DEFAULT NULL');
$this->addSql('ALTER TABLE mmpp_dossier_inscription ADD convocation_sended_at DATE DEFAULT NULL');
$this->addSql('ALTER TABLE mmpp_dossier_inscription ADD dossier_fully_paid_at DATE DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE mmpp_dossier_inscription DROP internship_ar_sended_at');
$this->addSql('ALTER TABLE mmpp_dossier_inscription DROP dossier_ar_sended_at');
$this->addSql('ALTER TABLE mmpp_dossier_inscription DROP convocation_sended_at');
$this->addSql('ALTER TABLE mmpp_dossier_inscription DROP dossier_fully_paid_at');
}
}