<?php
declare(strict_types=1);
namespace ProductsBundleMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20240902075518 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE products_bundle__product ADD energy_code VARCHAR(255) DEFAULT NULL');
$this->addSql('CREATE INDEX energy_code ON products_bundle__product (energy_code)');
}
public function down(Schema $schema): void
{
$this->addSql('DROP INDEX energy_code ON products_bundle__product');
$this->addSql('ALTER TABLE products_bundle__product DROP energy_code');
}
}