<?php

declare(strict_types=1);

namespace DoctrineMigrations;

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

final class Version20260319100000 extends AbstractMigration
{
    public function getDescription(): string
    {
        return 'Add amount receipt fields to mileage_allowances';
    }

    public function up(Schema $schema): void
    {
        $this->addSql('ALTER TABLE mileage_allowances ADD amount_receipt_path VARCHAR(255) DEFAULT NULL');
        $this->addSql('ALTER TABLE mileage_allowances ADD amount_receipt_name VARCHAR(255) DEFAULT NULL');
    }

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