<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260709213104 extends AbstractMigration
{
public function getDescription(): string
{
return 'Remove the free_delivery column after migrating to the free_delivery promotion type';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE promotion DROP free_delivery');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE promotion ADD free_delivery TINYINT(1) DEFAULT 0 NOT NULL');
}
}