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