<?php

declare(strict_types=1);

namespace DoctrineMigrations;

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

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

    public function up(Schema $schema): void
    {
        $this->addSql('ALTER TABLE mileage_allowances ADD COLUMN amount DOUBLE PRECISION DEFAULT 0 NOT NULL');
    }

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