<?php

declare(strict_types=1);

namespace DoctrineMigrations;

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

final class Version20260218190000 extends AbstractMigration
{
    public function getDescription(): string
    {
        return 'Add count_as_worked_hours on absence_types';
    }

    public function up(Schema $schema): void
    {
        $this->addSql('ALTER TABLE absence_types ADD count_as_worked_hours BOOLEAN DEFAULT FALSE NOT NULL');
    }

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