Files
myep-team/migrations/Version20260924090000.php
T

34 lines
1.2 KiB
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* The follow-up a reviewer works through on a received form submission: two mails and two calls.
*
* Hand-written rather than generated: doctrine:migrations:diff also sweeps in the long-standing
* dev drift in the datetime and json column declarations and tables from other branches. These
* are the only statements this change needs.
*/
final class Version20260924090000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add the follow-up mail and call dates to application_form_submission';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE application_form_submission ADD first_mail_sent_at DATETIME DEFAULT NULL, ADD second_mail_sent_at DATETIME DEFAULT NULL, ADD first_call_held_at DATE DEFAULT NULL, ADD second_call_held_at DATE DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE application_form_submission DROP first_mail_sent_at, DROP second_mail_sent_at, DROP first_call_held_at, DROP second_call_held_at');
}
}