<?php
declare(strict_types=1);
namespace ProductsBundleMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20241216141648 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE products_bundle__product ADD available_for_supplier_purchase TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('CREATE INDEX available_for_supplier_purchase ON products_bundle__product (available_for_supplier_purchase)');
}
public function down(Schema $schema): void
{
$this->addSql('DROP INDEX available_for_supplier_purchase ON products_bundle__product');
$this->addSql('ALTER TABLE products_bundle__product DROP available_for_supplier_purchase');
}
}