<?php

declare(strict_types=1);

namespace CpCreation\VitiCore\Bridge\Doctrine\Migrations;

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

final class Version20260507173000 extends AbstractMigration
{
    public function getDescription(): string
    {
        return 'Ajoute la date d initiation du paiement sur les checkouts panier.';
    }

    public function up(Schema $schema): void
    {
        $this->addSql('ALTER TABLE cart_cart_checkout ADD initiated_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL');
    }

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