<?php

declare(strict_types=1);

namespace DoctrineMigrations;

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

/**
 * Auto-generated Migration: Please modify to your needs!
 */
final class Version20260402204223 extends AbstractMigration
{
    public function getDescription(): string
    {
        return '';
    }

    public function up(Schema $schema): void
    {
        // this up() migration is auto-generated, please modify it to your needs
        $this->addSql('ALTER TABLE price_automatic ADD month_price NUMERIC(10, 2) DEFAULT \'0.00\' NOT NULL');
        $this->addSql('ALTER TABLE price_automatic ADD period SMALLINT DEFAULT 1 NOT NULL');
        $this->addSql('ALTER TABLE price_automatic ADD stripe_id VARCHAR(255) DEFAULT NULL');
        $this->addSql('ALTER TABLE price_automatic ADD stripe_abonnement_id VARCHAR(255) DEFAULT NULL');
        $this->addSql('CREATE UNIQUE INDEX UNIQ_FAD167EC8CDE5729 ON price_automatic (type)');
    }

    public function down(Schema $schema): void
    {
        // this down() migration is auto-generated, please modify it to your needs
        $this->addSql('DROP INDEX UNIQ_FAD167EC8CDE5729');
        $this->addSql('ALTER TABLE price_automatic DROP month_price');
        $this->addSql('ALTER TABLE price_automatic DROP period');
        $this->addSql('ALTER TABLE price_automatic DROP stripe_id');
        $this->addSql('ALTER TABLE price_automatic DROP stripe_abonnement_id');
    }
}
