35 lines
1.0 KiB
PHP
35 lines
1.0 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace DoctrineMigrations;
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
use Doctrine\Migrations\AbstractMigration;
|
|
|
|
/**
|
|
* The one payload field a rule depends on: whether the form reported an EU (incl. Switzerland)
|
|
* nationality. Nullable with three meanings - true, false, and "this form does not ask" - because
|
|
* only true earns the automatic receipt mail.
|
|
*
|
|
* Hand-written rather than generated, like the other two: doctrine:migrations:diff also sweeps in
|
|
* the long-standing dev drift and tables from other branches.
|
|
*/
|
|
final class Version20260924120000 extends AbstractMigration
|
|
{
|
|
public function getDescription(): string
|
|
{
|
|
return 'Add the eu eligibility flag to application_form_submission';
|
|
}
|
|
|
|
public function up(Schema $schema): void
|
|
{
|
|
$this->addSql('ALTER TABLE application_form_submission ADD eu TINYINT DEFAULT NULL');
|
|
}
|
|
|
|
public function down(Schema $schema): void
|
|
{
|
|
$this->addSql('ALTER TABLE application_form_submission DROP eu');
|
|
}
|
|
}
|