<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

final class Version20260318004535 extends AbstractMigration
{
    public function getDescription(): string
    {
        return 'Ajouter le champ rule_override sur homework pour la traçabilité des warnings contournés';
    }

    public function up(Schema $schema): void
    {
        $this->addSql('ALTER TABLE homework ADD COLUMN rule_override JSONB DEFAULT NULL');
    }

    public function down(Schema $schema): void
    {
        $this->addSql('ALTER TABLE homework DROP COLUMN rule_override');
    }
}
