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