<?php

declare(strict_types=1);

namespace CpCreation\VitiCore\Bridge\Doctrine\Migrations;

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

final class Version20260414120000 extends AbstractMigration
{
    public function getDescription(): string
    {
        return 'Add email to user invoice addresses';
    }

    public function up(Schema $schema): void
    {
        $this->addSql('ALTER TABLE user_invoice_address ADD email TEXT DEFAULT NULL');
    }

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