<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20220907153103 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$schema->getTable('member_application_co_member')->getColumn('type')->setNotnull(false);
$schema->getTable('member_application_co_member')->getColumn('last_name')->setNotnull(false);
$schema->getTable('member_application_co_member')->getColumn('first_name')->setNotnull(false);
$schema->getTable('member_application_co_member')->getColumn('sex')->setNotnull(false);
$schema->getTable('member_application_co_member')->getColumn('social_security_number')->setNotnull(false);
}
public function down(Schema $schema): void
{
$schema->getTable('member_application_co_member')->getColumn('type')->setNotnull(true);
$schema->getTable('member_application_co_member')->getColumn('last_name')->setNotnull(true);
$schema->getTable('member_application_co_member')->getColumn('first_name')->setNotnull(true);
$schema->getTable('member_application_co_member')->getColumn('sex')->setNotnull(true);
$schema->getTable('member_application_co_member')->getColumn('social_security_number')->setNotnull(true);
}
}