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