<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20250408100001 extends AbstractMigration
{
public function getDescription(): string
{
return 'make ged_model_name NOT NULL in document_type';
}
public function up(Schema $schema): void
{
$schema->getTable('document_type')->getColumn('ged_model_name')->setNotnull(true);
}
public function down(Schema $schema): void
{
$schema->getTable('document_type')->getColumn('ged_model_name')->setNotnull(false);
}
}