<?php

declare(strict_types=1);

namespace DoctrineMigrations;

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

final class Version20260402064647 extends AbstractMigration
{
    public function getDescription(): string
    {
        return 'Add paid_leave_days column to employee_leave_balances for forfait N-1 leave payment';
    }

    public function up(Schema $schema): void
    {
        $this->addSql('ALTER TABLE employee_leave_balances ADD paid_leave_days DOUBLE PRECISION DEFAULT 0 NOT NULL');
        $this->addSql("COMMENT ON COLUMN employee_leave_balances.paid_leave_days IS 'Jours de conges N-1 payes par la RH (forfait uniquement).'");
    }

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