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